graphql-engine/server/tests-py/queries/remote_schemas/character_interface_query.yaml
Anon Ray a21f6cd648 introduce v1/graphql (fix #1368) (#2064)
Changes compared to `/v1alpha1/graphql`

* Changed all graphql responses in **/v1/graphql** endpoint to be 200. All graphql clients expect responses to be HTTP 200. Non-200 responses are considered transport layer errors. 

* Errors in http and websocket layer are now consistent and have similar structure.
2019-05-10 11:35:10 +05:30

44 lines
740 B
YAML

description: Query from the remote schema with interfaces
url: /v1/graphql
status: 200
response:
data:
hero3: null
hero4:
__typename: Droid
id: '1'
name: R2-D2
primaryFunction: Astromech
hero5:
__typename: Human
name: Luke Skywalker
homePlanet: Tatooine
query:
query: |
query getHeroes {
hero3: hero (episode: 3) {
id
}
hero4: hero (episode: 4) {
__typename
id
name
... on Droid {
primaryFunction
}
}
hero5: hero (episode: 5) {
__typename
name
... on Droid {
primaryFunction
}
... on Human {
homePlanet
}
}
}