mirror of
https://github.com/graphql-python/graphene.git
synced 2025-04-07 02:44:16 +03:00
Update quickstart example
Running the example previously resulted in a FutureWarning.
This commit is contained in:
parent
86cf258e38
commit
1a3acd1199
|
@ -43,7 +43,7 @@ schema = graphene.Schema()
|
|||
|
||||
# This will be our root query
|
||||
class Query(graphene.ObjectType):
|
||||
username = graphene.StringField(description='The username')
|
||||
username = graphene.String(description='The username')
|
||||
|
||||
def resolve_username(self, *args):
|
||||
return 'Hello World'
|
||||
|
|
Loading…
Reference in New Issue
Block a user