mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
44 lines
746 B
YAML
44 lines
746 B
YAML
description: Query from the remote schema with interfaces
|
|
url: /v1alpha1/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
|
|
}
|
|
}
|
|
}
|