Skip to content

Commit

Permalink
Update doc examples to reflect the docs for JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jan 15, 2022
1 parent 86a9145 commit b969a9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ Then, serve the result of a query against that type schema.
```python
from graphql import graphql_sync

query = '{ hello }'
source = '{ hello }'

print(graphql_sync(schema, query))
print(graphql_sync(schema, source))
```

This runs a query fetching the one field defined, and then prints the result:
Expand All @@ -115,9 +115,9 @@ semantically valid before executing it, reporting errors otherwise.
```python
from graphql import graphql_sync

query = '{ BoyHowdy }'
source = '{ BoyHowdy }'

print(graphql_sync(schema, query))
print(graphql_sync(schema, source))
```

Because we queried a non-existing field, we will get the following result:
Expand Down

0 comments on commit b969a9d

Please sign in to comment.