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 3c92a63 commit ff3770aCopy full SHA for ff3770a
django_mongodb/base.py
@@ -125,6 +125,10 @@ def _isnull_operator(a, b):
125
"lt": lambda a, b: {a: {"$lt": b}},
126
"lte": lambda a, b: {a: {"$lte": b}},
127
"in": lambda a, b: {a: {"$in": b}},
128
+ # Partial indexes do not support the $not expression.
129
+ # Operators like $exists: False, $ne, and $nor cannot be used in partial indexes.
130
+ # So, indexes on null values (isnull=True|False) can't be implemented.
131
+ "isnull": lambda a, b: {}, # noqa: ARG005
132
}
133
134
display_name = "MongoDB"
0 commit comments