Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[GraphQL] Multiple aliases for single matrix field #5008
It doesn't seem like its currently possible to query the same matrix field multiple times (with different aliases) for different block types. I want to be able to do something like this in order to group blocks by their type:
When I try this, only the last alias (
If I remove the type parameters, each alias gets all the matrix blocks from the field, but since some don't match the fragment, I get an array of mostly empty objects. The ones that do match have all the correct data though.