Fix wrong variable name (#1015)

Resolves #1014
This commit is contained in:
Jonathan Kim 2019-06-22 18:09:52 +02:00 committed by GitHub
parent 0e8a3c5063
commit abe547fb4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!"