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
I want to use my own string id (is allowed in mongodb) as _id when saving documents, but library always try to convert that id to objectid and therefor it fails.
The text was updated successfully, but these errors were encountered:
Hi @mfs-git i use my own string id in mongodb too, try this one:
inside json, instead to pass the id like {"_id" : ObjectId("000000000000000000000001")}
try send in this way: {"_id" : {"$oid" : "000000000000000000000001"}}
I want to use my own string id (is allowed in mongodb) as _id when saving documents, but library always try to convert that id to objectid and therefor it fails.
The text was updated successfully, but these errors were encountered: