Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
packages=find_packages(include=["gql*"]),
install_requires=[
'six>=1.10.0',
'graphql-core>=0.5.0,<2',
'graphql-core>=2,<3',
'promise>=2.0,<3',
'requests>=2.12,<3'
],
Expand Down
10 changes: 5 additions & 5 deletions tests/starwars/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
'friends': GraphQLField(
GraphQLList(characterInterface),
description='The friends of the human, or an empty list if they have none.',
resolver=lambda human, *_: getFriends(human),
resolver=lambda human, info, **args: getFriends(human),
),
'appearsIn': GraphQLField(
GraphQLList(episodeEnum),
Expand Down Expand Up @@ -92,7 +92,7 @@
'friends': GraphQLField(
GraphQLList(characterInterface),
description='The friends of the droid, or an empty list if they have none.',
resolver=lambda droid, *_: getFriends(droid),
resolver=lambda droid, info, **args: getFriends(droid),
),
'appearsIn': GraphQLField(
GraphQLList(episodeEnum),
Expand All @@ -118,7 +118,7 @@
type=episodeEnum,
)
},
resolver=lambda root, args, *_: getHero(args.get('episode')),
resolver=lambda root, info, **args: getHero(args.get('episode')),
),
'human': GraphQLField(
humanType,
Expand All @@ -128,7 +128,7 @@
type=GraphQLNonNull(GraphQLString),
)
},
resolver=lambda root, args, *_: getHuman(args['id']),
resolver=lambda root, info, **args: getHuman(args['id']),
),
'droid': GraphQLField(
droidType,
Expand All @@ -138,7 +138,7 @@
type=GraphQLNonNull(GraphQLString),
)
},
resolver=lambda root, args, *_: getDroid(args['id']),
resolver=lambda root, info, **args: getDroid(args['id']),
),
}
)
Expand Down