fix the hello world example in the README

This commit is contained in:
Adam Ever Hadani 2016-09-21 17:28:49 -07:00
parent 8128292b02
commit c400e1fff7
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ Here is one example for get you started:
class Query(graphene.ObjectType): class Query(graphene.ObjectType):
hello = graphene.String(description='A typical hello world') hello = graphene.String(description='A typical hello world')
def resolve_hello(self, args, context, info): def resolve_hello(self, args, info):
return 'World' return 'World'
schema = graphene.Schema(query=Query) schema = graphene.Schema(query=Query)

View File

@ -58,7 +58,7 @@ Here is one example for get you started:
class Query(graphene.ObjectType): class Query(graphene.ObjectType):
hello = graphene.String(description='A typical hello world') hello = graphene.String(description='A typical hello world')
def resolve_hello(self, args, context, info): def resolve_hello(self, args, info):
return 'World' return 'World'
schema = graphene.Schema(query=Query) schema = graphene.Schema(query=Query)