We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug If the query values are not in proper Python type, the query is not working. But the typed variable is working.
To Reproduce
await Model.find_many({'tenant': {'$in': ['f6a0e5a3-ef1c-414d-8c34-61a9c2d1828a']}}) # This is giving a None response
Expected behavior
await Model.find_many({'tenant': {'$in': [UUID('f6a0e5a3-ef1c-414d-8c34-61a9c2d1828a')]}}) # This is giving a None response ^^^^^
In mongoengine, this was giving me proper response,
await Model.objects.find(tenant__in=['f6a0e5a3-ef1c-414d-8c34-61a9c2d1828a')])
So the expectation is to work on this query {'tenant': {'$in': ['f6a0e5a3-ef1c-414d-8c34-61a9c2d1828a']}}
{'tenant': {'$in': ['f6a0e5a3-ef1c-414d-8c34-61a9c2d1828a']}}
The text was updated successfully, but these errors were encountered:
Could you please share your model definition and, ideally, a minimal reproducible example?
Sorry, something went wrong.
This issue is stale because it has been open 30 days with no activity.
No branches or pull requests
Describe the bug
If the query values are not in proper Python type, the query is not working. But the typed variable is working.
To Reproduce
Expected behavior
In mongoengine, this was giving me proper response,
So the expectation is to work on this query
{'tenant': {'$in': ['f6a0e5a3-ef1c-414d-8c34-61a9c2d1828a']}}
The text was updated successfully, but these errors were encountered: