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