Upsert not working #2407
Closed
krishnaram
started this conversation in
General
Replies: 2 comments 2 replies
-
it looks like perhaps that log entry didn't get completely copied in to the comment here. Everything looks right (though your filter has extra parentheses which shouldn't matter). If you could put together a reproducer I'd be happy to take a look and see. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I found the issue. Upsert only work when "_id" is autogenerated. If it is given by the entity it won't create records in upsert. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using
Logs we are getting
0 record got upserted, BsonString{value=eVehicle''}: ID is
Our "_id" is not autogenerated.
Please anyone can help on this issue. Thanks
Beta Was this translation helpful? Give feedback.
All reactions