Getting data from a Restful api just like GraphQL at build time? #27610
Unanswered
Blakeinstein
asked this question in
Help
Replies: 2 comments
-
createPages gets passed a |
Beta Was this translation helpful? Give feedback.
0 replies
-
But then How would I create cards for the same? There is only one page, that I need to do this for. Currently I can get most of the data needed and create components with each edge. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to get a list of repositories and its data using GraphQL. This works flawlessly on Gatsby with its intended graphql usage and the gatsby-source-github-api plugin.
However, the Github graphql api doesnt support getting information about contributors, and one needs to use the Rest Api for the same.
I am unsure how I can get the data at build time instead of when someone visits the webpage.
Currently I have
since the repository url depends on the list of repositories, I cant exactly use export.createPages in gatsby-node...
Beta Was this translation helpful? Give feedback.
All reactions