mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 11:03:58 +03:00
Small formatting fix to test docs integration
This commit is contained in:
parent
7b6dae7fa3
commit
28f6b18f55
|
@ -48,12 +48,14 @@ You can pass variables to a query via ``variables``.
|
|||
|
||||
schema = graphene.Schema(Query)
|
||||
result = schema.execute(
|
||||
'''query getUser($id: ID) {
|
||||
user(id: $id) {
|
||||
'''
|
||||
query getUser($id: ID) {
|
||||
user(id: $id) {
|
||||
id
|
||||
firstName
|
||||
lastName
|
||||
}
|
||||
}
|
||||
}''',
|
||||
''',
|
||||
variables={'id': 12},
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user