Answers for "mongodb find by part of string"

0

mongodb find by part of string

db.users.findOne({"username" : {$regex : "son"}});
Posted by: Guest on September-27-2021
0

mongodb find by part of string

db.users.findOne({"username" : /.*son.*/i});
Posted by: Guest on September-27-2021
0

mongodb find by part of string

db.users.find({username:/Son/})
Posted by: Guest on September-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language