mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 12:44:15 +03:00
Improved initial query
This commit is contained in:
parent
5697ef98e9
commit
ab9a142075
|
@ -9,17 +9,18 @@ app.debug = True
|
|||
|
||||
default_query = '''
|
||||
{
|
||||
node(id:"%s") {
|
||||
name
|
||||
employees {
|
||||
edges {
|
||||
node {
|
||||
allEmployees {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
department {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}'''.strip() % Department.global_id(1)
|
||||
}'''.strip()
|
||||
|
||||
GraphQL(app, schema=schema, default_query=default_query)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user