Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find / Update using Model #11

Open
tshumay opened this issue Sep 9, 2018 · 0 comments
Open

Find / Update using Model #11

tshumay opened this issue Sep 9, 2018 · 0 comments

Comments

@tshumay
Copy link

tshumay commented Sep 9, 2018

I fear I may be misunderstanding usage - but hopefully you can help me understand the proper way to do this....

I am using the find function to locate a Lead record successfully, but when I go to save, a duplicate record is created, because the 'id' field is not present.

In model.js line 16, I can see why. 'id' is a read-only, so it does not become a property of the item. However, the base item retrieved by find does in fact have an id that could be used to save the object again later.

Is there a recommended way to preserve the id in a find->modify->save operation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant