2019-01-28 19:45:10 +03:00
|
|
|
description: Query from the remote schema with interfaces
|
2019-05-10 09:05:11 +03:00
|
|
|
url: /v1/graphql
|
2019-01-28 19:45:10 +03:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|