Answers for "check a string has word that match mongodb document"

0

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.*"}
})
Posted by: Guest on February-25-2021

Code answers related to "check a string has word that match mongodb document"

Python Answers by Framework

Browse Popular Code Answers by Language