Skip to content

Commit 12f095c

Browse files
Bug fixed in chained_resolver
1 parent 59a0b94 commit 12f095c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene_mongo/fields.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ def chained_resolver(self, resolver, is_partial, root, info, **args):
375375
if arg_name not in self.model._fields_ordered + ('first', 'last', 'before', 'after') + tuple(
376376
self.filter_args.keys()):
377377
args_copy.pop(arg_name)
378+
if arg_name == '_id' and isinstance(arg, dict):
379+
args_copy['pk__in'] = arg['$in']
378380
if '.' in arg_name:
379381
operation = list(arg.keys())[0]
380382
args_copy[arg_name.replace('.', '__') + operation.replace('$', '__')] = arg[operation]

0 commit comments

Comments
 (0)