Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search GitHub Projects Beta with GraphQL API

I've been playing with Projects Beta using GitHub's GQL API but can't find a way to filter / search / query them.

For instance, I'd to get all issues in a project for which a field has a specific value.

How do I do so? Is it possible?

None of those objects as a filter attribute. I've also looked at the search query but that doesn't seem to support Projects or Fields as query parmeters.

Thanks in advance!

like image 226
teocomi Avatar asked May 08 '26 23:05

teocomi


1 Answers

I asked about this in the Projects Beta Feedback Discussion.

It seems that filtering hasn't been implemented (yet) and so it's necessary to do things the old fashioned way (like with the REST API) by using queries to get all the issues, then filtering after.

In many ways this is worse than things were with the REST API, as there's no way to get just the issues in a given column, you have to get every issue on the board, which quickly then gets you into needing pagination.

At least GraphQL queries are specifying which nodes/fields you want back, so you're not having to filter through all of everything, just some of everything.

like image 132
Chris Swan Avatar answered May 11 '26 14:05

Chris Swan