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: Query Data with GraphQL - Prismic 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.

Hi, I have tagged this thread as a feature request and forwarded it to the @features-team.

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the :heart: button to show your support for the feature and check out our Feature Request Guidelines.