Skip to content

Nitrite/Java: Nested objects #36

Answered by anidotnet
Semisol asked this question in Q&A
Discussion options

You must be logged in to vote
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 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

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Semisol
Comment options

Answer selected by anidotnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
nitrite-java Nitrite for Java
2 participants