check a string has word that match mongodb document 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.*"}
})