ldd / gatsby-source-github-api

Pull data into Gatsby from Github API v4
MIT License
65 stars 10 forks source link

Multiple queries? #7

Closed mohsen1 closed 6 years ago

mohsen1 commented 6 years ago

How can I make multiple queries to the Github API? I have a simple query that I want to repeat for two separate orgs and merge the results. Not sure how I can do it with this plugin.

I have (naïvely) tried to repeat the plugin usage but that will not work. Here is my code: https://github.com/lyft/lyft.github.io/pull/20

mohsen1 commented 6 years ago

Never mind, found a GraphQL way of fetching multiple orgs with Github GraphQL API:

https://github.com/lyft/lyft.github.io/pull/20/commits/a32e5658901fcf4c89daabf9185faeac9ac95804