mongo substring contain code example
Example: mongodb check if substring in string
#all documents whose description field contains anywhere
#in the text the "beach" sub string
query = db.collection.find({
"description" : {"$regex" : ".*beach.*"}
})