graphql-engine/server/tests-py/queries/actions/sync/query_action_recursive_output.yaml
paritosh-08 40678855d0 server: add support for nested object type in action
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2788
Co-authored-by: David Overton <7734777+dmoverton@users.noreply.github.com>
GitOrigin-RevId: f8ed9741e95b6864a48af7db338f3f619617483a
2021-12-15 23:52:43 +00:00

65 lines
1.1 KiB
YAML

- description: query action with recursive output
url: /v1/graphql
status: 200
query:
query: |
query {
recursive_output {
direct {
id
this {
id
this {
id
}
}
}
list {
id
these {
id
these {
id
}
}
}
mutual {
id
that {
id
other {
id
that {
id
}
}
}
}
}
}
response:
data:
recursive_output:
direct:
id: 1
this:
id: 2
this:
id: 3
list:
id: 1
these:
- id: 2
these:
- id: 3
- id: 4
mutual:
id: 1
that:
id: 2
other:
id: 3
that:
id: 4