Skip to content

Commit

Permalink
[IMP] Changed self to root as the first argument of a resolver in gra…
Browse files Browse the repository at this point in the history
…phene is the parent object (the root)
  • Loading branch information
c8y3 committed Mar 20, 2024
1 parent 3eabbd5 commit 3b68747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app/blueprints/graphql/graphql_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Query(ObjectType):
# starting with the conversion of '/manage/cases/filter'
cases = List(lambda: CaseObject, description='Retrieves cases')

def resolve_cases(self, info):
def resolve_cases(root, info):
# TODO add all parameters to filter
return get_filtered_cases(current_user.id)

Expand Down

0 comments on commit 3b68747

Please sign in to comment.