Sail E0 Webinar
Question
What is the equivalent command in MongoDB for the following SQL query?SELECT * FROM posts WHERE author like "%john%"
Options:
A .  db.posts.find( { author: /john/ } )
B .  db.posts.find( { author: {$like: /john/} } )
C .  db.posts.find( { $like: {author: /john/} } )
D .  db.posts.find( { author: /^john^/ } )
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers