Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0ssigeno committed Sep 26, 2024
1 parent 30ca3f6 commit 4d91c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlasq/queryset/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _single_equals(self, path: str, value: Union[ObjectId, bool]):
def _contains(self, path: str, value: Any, keyword: str = None):
if not keyword:
return {path: {"$elemMatch": value}}
return {path: {"$elemMatch": {keyword: value}}}
return {path: {"$elemMatch": {f"${keyword}": value}}}

def _equals(self, path: str, value: Union[List[Union[ObjectId, bool]], ObjectId, bool]) -> Dict:
if isinstance(value, list):
Expand Down

0 comments on commit 4d91c9c

Please sign in to comment.