graphql-engine/server/tests-py/queries/apollo_federation/entities.yaml
paritosh-08 95adde4ce2 server: support for Apollo federation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4584
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
GitOrigin-RevId: 0f60c263efb5fbaa25620dd8159e8cfda25a61b2
2022-07-25 15:54:41 +00:00

29 lines
508 B
YAML

description: Introspection to check query fields and their types
url: /v1/graphql
status: 200
query:
query: |
query EntitiesTest($representations: [_Any!]!) {
_entities(representations: $representations) {
... on user {
id
email
name
is_admin
}
}
}
variables:
representations:
- __typename: user
id: 1
response:
data:
_entities:
- id: 1
email: foo@email.com
name: foo
is_admin: false