-
Notifications
You must be signed in to change notification settings - Fork 8
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: