0
I need to make a query in a database in Mongodb using the pymongo library in python, the query I am making is as follows:
dbCliente.find({"nome": "carlos"})
I want to return the client whose name is exactly "carlos" but ignoring capital letters or minuscules.
How do I make this query using pymongo?
Tries with regex :
dbCliente.find({"nome":{ $regex: 'carlos', $options: 'i' } })
– Augusto Vasques