0
votes

In GraphQL can an object type belong to multiple union types?

type Foo {
    id: String!
}
type Bar {
    number: Int!
}
union UnionA = Foo | Bar
union UnionB = Foo
1

1 Answers

0
votes

Yes, an object type can belong to any number of union types. There's nothing in the spec that explicitly prohibits that.