Gist functionality support in GraphQL api


#1

Hi,

I am building a lightweight gist client and really, really would like to use GraphQL to access and mutate gist data. It appears that as of today, GraphQL support for gists are:

  • mutations: nothing supported
  • queries: metadata only

I understand internally GitHub is working hard on migrating off RESTv3, however, it seems that over the past 6 months, there has been little to nothing added for Gist functionality.

I guess what i’d like to know is if GitHub can provide me with any indication of when Gists will be supported with GraphQL API. I am not excited about the prospect of wrapping v3 REST API and would appreciate guidance on a roadmap.

Thank you,
Peter


#2

Hey @peterschussheim

We’ll be spending a lot of time in the next 6-12 months building out our GraphQL API to include all the functionality of our REST API. There’s a lot to get through though, so it’s hard to give an exact estimate of when a specific feature will ship.

If you have specific endpoint requests, I can do my best to prioritize those :slight_smile:


#3

Hi @d12,

thanks for your quick reply. I would be most appreciative if Gist CREATE/UPDATE/DELETE were prioritized.

Peter


#4

Great, I’ve added this to our list of things to prioritize. I’ll ping you here when this ships!


#5

thank you!


#6

It would be great to be able to query Gist contents! At the moment the REST API does not provide a stargazers count for gists, but you can get the content. The GraphQL API shows the stars, but no contents. So I have to make 2 requests at once :sweat:


#7

any progress with this functionality? @d12


#8

@peterschussheim Unfortunately not yet :confused: We’re tackling a lot of the query stuff first before the mutations, so it’s really hard for me to give a timeline on when this will be supported. We’ll be sure to ping you here when it happens though.


#9

Thanks Nathaniel for the quick reply.