MCQs > IT & Programming > MongoDB > Consider the following posts collection in MongoDB, { '_id' : 1, 'post_title' : 'this is post title', 'tags': [ 'social', 'friends', 'books'], // rest of the document } Output of following query: db.posts.aggregate( [ { $unwind : '$tags' } ] )

MongoDB MCQs

Consider the following posts collection in MongoDB, { "_id" : 1, "post_title" : "this is post title", "tags": [ "social", "friends", "books"], // rest of the document } What will be the output of following query: db.posts.aggregate( [ { $unwind : "$tags" } ] )

Answer

Correct Answer: Return three separate documents for three separate tags

Explanation:

Note: This Question is unanswered, help us to find answer for this one

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it