Interfaces and Unions
GraphQL Unions
const { drawChangeCard } = await chain('query')({
drawChangeCard: {
__typename: true,
'...on EffectCard': {
effectSize: true,
name: true,
},
'...on SpecialCard': {
effect: true,
name: true,
},
},
});{
"effectSize": 195.99532210956377,
"name": "Destinee",
"__typename": "EffectCard"
}GraphQL Interfaces
Last updated
Was this helpful?