mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +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"
|
# "Hello stranger"
|
||||||
|
|
||||||
# or passing the argument in the query
|
# 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)
|
result = schema.execute(query_with_argument)
|
||||||
print(result.data['hello'])
|
print(result.data['hello'])
|
||||||
# "Hello GraphQL!"
|
# "Hello GraphQL!"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user