how to check if a value contain a specific text in mongodb 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.*"}
})