Insert element into nested arrays #2504
Unanswered
mbehzad-bhz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i want to push to nested object
here is my mongo shell
db.documents.update( { _id: "iL9hL2hLauoSimtkM", "comments._id": "id1"}, { $push: { "comments.$.likes": "userID3" }} );
how can i write it on jessenger ?
Beta Was this translation helpful? Give feedback.
All reactions