Skip to content

Conversation

bagerard
Copy link
Collaborator

@bagerard bagerard commented Sep 2, 2025

Adding extra test case + changelog

terencehonles and others added 5 commits August 18, 2025 15:15
This change adds the ``_ref`` or ``_ref.$id`` prefix to a query if all
values in an iterable query (i.e. ``__in``) are ``ObjectId``s or
``DBRef``s and raises an error for a mixed query which will only work
for documents. These could possibly be compiled into an ``{$or: ...}``
query, but the automatic expansion can be added as necessary.
…ncehonles-fix-generic-reference-iterable-query
@bagerard bagerard merged commit 370460d into MongoEngine:master Sep 2, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants