-
Notifications
You must be signed in to change notification settings - Fork 102
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
Custom idAttribute not recognized in Sync #12
Comments
hmm.. im not sure. it should work how you explained. "model[model.idAttribute] returns falsy in other cases" |
I know for sure that it happens on the
|
Roger. Please let me know if you find a solution. |
I'm convinced that the use of |
Hi there ! Example: When I updade, got error "[REST API] ERROR: MISSING MODEL ID" because For now I've replaced all occurrences of Cheers |
My Rails/Mongoid app returns JSON with the
_id
attribute rather thanid
, so I have set themodel.definition.config.idAttribute
to'_id'
. This works fine in thecreate
case, butmodel[model.idAttribute]
returns falsy in other cases. It appears thatmodel.id
would return the appropriate_id
string. Am I doing something wrong, or should I modify myrestapi.js
?The text was updated successfully, but these errors were encountered: