github-graphql

Select * for Github GraphQL Search

五迷三道 提交于 2019-12-02 00:10:10
One of the advantage of Github Search v4 (GraphQL) over v3 is that it can selectively pick the fields that we want, instead of always getting them all. However, the problem I'm facing now is how to get certain fields. I tried the online help but it is more convolution to me than helpful. Till now, I'm still unable to find the fields for size, score and open issues for the returned repository(ies). That's why I'm wondering if there is a way to get them all, like Select * in SQL. Thx. GraphQL requires that when requesting a field that you also request a selection set for that field (one or more