You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: