gatsby-source-github icon indicating copy to clipboard operation
gatsby-source-github copied to clipboard

Query doesn't work.

Open outofthisworld opened this issue 7 years ago • 1 comments

Attempting to search repos using this source plugin and getting error: an error occurred with gatsby-source-plugin. What's really annoying is it freezes gatsby develop and stops CTRL+c from exiting; which means that I have to force close the terminal 👎

I read in another issue that inline fragments might not be supported? What is that about and how can you do this type of query otherwise?

{ search(first: 20, query: "Front-end", type: REPOSITORY) { nodes { ... on Repository { id name homepageUrl url watchers { totalCount } owner { id login url avatarUrl } createdAt databaseId descriptionHTML forkCount description licenseInfo { body description featured id name nickname url limitations { description key label } conditions { description key label } } languages(first: 20) { totalCount totalSize nodes { color id name } } issues(first: 20) { nodes { body bodyHTML bodyText number publishedAt createdAt databaseId id reactions(first: 20) { totalCount nodes { content } } } } } } } }

outofthisworld avatar Sep 09 '18 10:09 outofthisworld

use gatsby-source-graphql

smakosh avatar Jul 04 '19 13:07 smakosh