Filter result of grouped selects

I have created a category multi-select in Prismic using a Group and Select.

I’m trying to create a “similar post” feature where the 5 latest posts are returned for a category.

For example, a post might have category1, category2 and category3 assigned to it and in the “similar post” list, I want to return the 5 latest posts for category1.

How can this be done?

I tried something like this: https://prismic.io/docs/graphql/query-the-api/filtering-by-a-content-relationshiplink-field but can’t seem to get Selects working within a Group.

Hi @teamcrisis, unfortunately at the moment there is no way to query/filter by a field inside of a Group using the GraphQL API. It works with the REST API, but that functionality hasn’t been added for the GraphQL API yet.