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

Remove check that _id is an instance of ObjectID #124

Merged
merged 1 commit into from
Mar 10, 2016
Merged

Remove check that _id is an instance of ObjectID #124

merged 1 commit into from
Mar 10, 2016

Conversation

simonbengtsson
Copy link
Contributor

This removes a check that _id is an instance of ObjectID. My understanding when reading the docs is that the _id is recommended to be an ObjectId, but that it is not required. When I tested with a database for parse-server (which uses strings as _id), updates to documents failed with the following error InvalidArugmentError('objectId must be an instance of ObjectId');. With the check removed it worked perfectly.

@officert
Copy link
Owner

awesome looks good, thanks @simonbengtsson !

officert added a commit that referenced this pull request Mar 10, 2016
Remove check that _id is an instance of ObjectID
@officert officert merged commit aa8be46 into officert:master Mar 10, 2016
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

Successfully merging this pull request may close these issues.

2 participants