Skip to content

Commit 1071b50

Browse files
alibitekSashko Stubailo
authored and
Sashko Stubailo
committed
Fix missing argument error in graphene example (graphql#198)
TypeError: resolve_hello() takes 3 positional arguments but 4 were given
1 parent 8566940 commit 1071b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/code/index.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ import graphene
185185
class Query(graphene.ObjectType):
186186
hello = graphene.String()
187187
188-
def resolve_hello(self, args, info):
188+
def resolve_hello(self, args, context, info):
189189
return 'Hello world!'
190190
191191
schema = graphene.Schema(query=Query)

0 commit comments

Comments
 (0)