I can't find details about Union support: neither documented nor reported as unsupported.
But I can't make it work:
Graph1
type Album @boundary {
id: ID!
}
type Artist @boundary {
id: ID!
}
union CatalogEntity = Album | Artist
type FeedCard {
type: String!
catalogEntity: CatalogEntity
}
type Query {
(...)
feed: [FeedCard]
}
Graph2
type Album @boundary {
id: ID!
title: String!
}
type Artist @boundary {
id: ID!
name: String!
}
When I query with
feed {
type
catalogEntity {
__typename
... on Artist {
id
name
}
... on Album {
id
title
}
}
}
}
I receive
"message": "Cannot query field \"title\" on type \"Artist\"".
Did I miss something? maybe declare the Union in graph 2 but how?
I can't find details about Union support: neither documented nor reported as unsupported. But I can't make it work:
Graph1
Graph2
When I query with
I receive
Did I miss something? maybe declare the Union in graph 2 but how?