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

Mongo Documents with ObjectId is not being updated and create new document with Mongo.ObjectId #340

Open
MaheshMaharana opened this issue Jun 14, 2019 · 0 comments

Comments

@MaheshMaharana
Copy link

Hi,
My Mongodb collection contains document with ObjectId. When I get the collection in client side, all my ObjectId is converted to string by default. Thus making me difficult to perform operation like update from client side. I can run the update query from server side which works fine but not in offline mode.
The insert command creates a string _id in document while I want Mongo.ObjectId as _id and the same happens for updating the document. The document with string _id gets updated while the documents with ObjectId doesn’t.

Can you please explain.. Really need a fix for this.

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