Filtering across server & local-only fields

I’m using Apollo Client to build a small custom UI against GitHub’s GraphQL API.

I manage a project with a lot of GitHub repositories, and what I want to do is be able to fetch some data about the repo, some content from the repo, issues and PRs and then filter across all of that information. Some of the properties - like if the repo is public or private - is something GitHub naturally supports GQL queries for. Other properties, for example if a repository has a certain topic or not, I’d need to do locally.

From reading the docs alone, I’m struggling to understand how the different concept come together to allow me to do this, and I wondered if anyone had come across this before.

As far as I can tell, I can query to get the local only variables, but there’s no way to search or filter based on their values, unless they happen to be a value you want to pass to GraphQL as a variable.

Therefore am I correct that the only way / correct way to do a filter that’s not a query that the GitHub API supports, is to run filter on the array locally?

Or is there a way to use TypePolicies to pre-group the data, even if that ends up in duplicates? :thinking:

Just trying to figure out the best way to do this.