MongoDB C100DBA Exam - Topic 8 Question 130 Discussion
What is the equivalent command in MongoDB for the following SQL query?SELECT * FROM posts WHERE author like "%john%"
A) db.posts.find( { author: /John/ } )
B) db.posts.find( { author: /AjohnA/ > )
C) db.posts.find( { $like: {author: /John/} } )
D) db.posts.find( { author: {$like: /John/} } )
Myong
3 days agoPhung
8 days agoJennie
14 days agoNoah
19 days agoKristeen
24 days agoTruman
29 days agoYan
1 month agoSolange
1 month agoEdelmira
1 month agoGabriele
2 months agoLonny
2 months agoVan
2 months ago