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 0b69e83 commit 70636a2Copy full SHA for 70636a2
mongoengine/queryset/base.py
@@ -562,7 +562,9 @@ def update(
562
563
queryset = self.clone()
564
query = queryset._query
565
- if "__raw__" in update and isinstance(update["__raw__"], list): # Case of Update with Aggregation Pipeline
+ if "__raw__" in update and isinstance(
566
+ update["__raw__"], list
567
+ ): # Case of Update with Aggregation Pipeline
568
update = [
569
transform.update(queryset._document, **{"__raw__": u})
570
for u in update["__raw__"]
0 commit comments