We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29949cb commit 7044495Copy full SHA for 7044495
django_mongodb/base.py
@@ -126,6 +126,10 @@ def _isnull_operator(a, b):
126
"lt": lambda a, b: {a: {"$lt": b}},
127
"lte": lambda a, b: {a: {"$lte": b}},
128
"in": lambda a, b: {a: {"$in": b}},
129
+ # Partial indexes do not support the $not expression.
130
+ # Operators like $exists: False, $ne, and $nor cannot be used in partial indexes.
131
+ # So, indexes on null values (isnull=True|False) can't be implemented.
132
+ "isnull": lambda a, b: {}, # noqa: ARG005
133
}
134
135
display_name = "MongoDB"
0 commit comments