mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-20 22:11:45 +03:00
a21f6cd648
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.
44 lines
740 B
YAML
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
|
|
}
|
|
}
|
|
}
|