Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Insert element into nested arrays #2504

Unanswered
mbehzad-bhz asked this question in Q&A
Discussion options

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 ?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2503 on February 05, 2023 12:48.

AltStyle によって変換されたページ (->オリジナル) /