You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, im changing my project from working with pymongo to odmantic and i cant find how can i execute this query
db.find_one({"name": {"$regex": f"^{name}$", "$options": "i"}})
I execute this query in a function where i get the parameter "name" and i want to check if it exists in my db but i want to check it case-insensitively.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, im changing my project from working with pymongo to odmantic and i cant find how can i execute this query
db.find_one({"name": {"$regex": f"^{name}$", "$options": "i"}})
I execute this query in a function where i get the parameter "name" and i want to check if it exists in my db but i want to check it case-insensitively.
Beta Was this translation helpful? Give feedback.
All reactions