Skip to content

Commit 3b156e1

Browse files
Operation ["$lte", "$gte", "$ne","$in"] support added in info.context.queryset
1 parent ec02ec1 commit 3b156e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_mongo/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def chained_resolver(self, resolver, is_partial, root, info, **args):
396396
operation = list(arg.keys())[0]
397397
args_copy[arg_name.replace('.', '__') + operation.replace('$', '__')] = arg[operation]
398398
else:
399-
operations = ["$lte", "$gte", "$ne"]
399+
operations = ["$lte", "$gte", "$ne", "$in"]
400400
if isinstance(arg, dict) and any(op in arg for op in operations):
401401
operation = list(arg.keys())[0]
402402
args_copy[arg_name + operation.replace('$', '__')] = arg[operation]

0 commit comments

Comments
 (0)