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 35cf5aa commit d093214Copy full SHA for d093214
django_mongodb_backend/aggregates.py
@@ -70,7 +70,7 @@ def count(self, compiler, connection, resolve_inner_expression=False):
70
if resolve_inner_expression:
71
return lhs_mql
72
return {"$sum": lhs_mql}
73
- # Normalize empty documents (introduced upstream) to an empty set fallback.
+ # Normalize empty documents (introduced by aggregation wrapping) to an empty set fallback.
74
agg_expression = Coalesce(agg_expression, [])
75
# If distinct=True or resolve_inner_expression=False, sum the size of the
76
# set.
0 commit comments