mongodb check if substring in string

Solutions on MaxInterview for mongodb check if substring in string by the best coders in the world

showing results for - "mongodb check if substring in string"
Luca
11 Oct 2016
1#all documents whose description field contains anywhere
2#in the text the "beach" sub string
3query = db.collection.find({
4  "description" : {"$regex" : ".*beach.*"}
5})
similar questions
queries leading to this page
mongodb check if substring in string