What is the status with Interfaces and Unions support? I have two collections that have the same content but have a different meaning. I would like to refrence these both with an array. However I don’t know how I can archive this without using unions or interfaces.
//This is currently not possible:
type User {
tags: [Tag]
}
union Tag = PrimaryTag | SecondaryTag
type PrimaryTag {
name: String!
children: [SecondaryTag]
}
type SecondaryTag {
name: String!
children: [SecondaryTag]
}
We don’t yet support union in GraphQL schemas, but it is on our roadmap to add that functionality. I’ve updated our internal ticket tracking that work with your request, to help lend it weight.
You might also want to post specifically in the Feature Request forum when checking in on not-yet-supported functionality. That way, other forum members can upvote your post, and we can use those votes to help prioritize which improvements happen first.