-
I would like to ask how nested documents work with these:
|
Beta Was this translation helpful? Give feedback.
Answered by
anidotnet
Feb 8, 2021
Replies: 0 comments 2 replies
-
WriteResult update(ObjectFilter filter, Document update); This method will update nested document entirely if you pass the top level field name and new nested document in For elemMatch, this test code might help you understand it better - https://github.com/nitrite/nitrite-java/blob/9b3cd0226fd9123745b5f40d53a2ea665c0cac11/nitrite/src/test/java/org/dizitart/no2/CollectionFindTest.java#L414 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
anidotnet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This method will update nested document entirely if you pass the top level field name and new nested document in
update
parameter as a document.For elemMatch, this test code might help you understand it better - https://github.com/nitrite/nitrite-java/blob/9b3cd0226fd9123745b5f40d53a2ea665c0cac11/nitrite/src/test/java/org/dizitart/no2/CollectionFindTest.java#L414