Du kan använda $in
operatorn för att matcha något av värdena i en array:
db.users.find(
{email : {$in : ["example@sqldat.com", "example@sqldat.com", "mail example@sqldat.com"]}}
)
Du kan använda $in
operatorn för att matcha något av värdena i en array:
db.users.find(
{email : {$in : ["example@sqldat.com", "example@sqldat.com", "mail example@sqldat.com"]}}
)