Consider that our posts collection contains an array field called tags that contains tags that the user enters. {

Posted by: Pdfprep Category: C100DBA Tags: , ,

Consider that our posts collection contains an array field called tags that contains tags that the user enters. {

MongoDB-C100DBA41_1

Which of the following commands will find all the posts that have been tagged as tutorial.
A . db.posts.find( { tags : ["tutorial"] } );
B . db.posts.find( { $array : {tags: "tutorial") > );
C . db.posts.find( { tags : "tutorial" } );
D . db.posts.findInArray( { tags : "tutorial" > );

Answer: C

Leave a Reply

Your email address will not be published.