mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 09:36:44 +03:00
parent
0e8a3c5063
commit
abe547fb4d
|
@ -130,7 +130,7 @@ Then we can start querying our **Schema** by passing a GraphQL query string to `
|
|||
# "Hello stranger"
|
||||
|
||||
# or passing the argument in the query
|
||||
query_string_with_argument = '{ hello (name: "GraphQL") }'
|
||||
query_with_argument = '{ hello(name: "GraphQL") }'
|
||||
result = schema.execute(query_with_argument)
|
||||
print(result.data['hello'])
|
||||
# "Hello GraphQL!"
|
||||
|
|
Loading…
Reference in New Issue
Block a user