Gatsby: Bind axios api call server side while `gatsby build`

Created on 13 Jul 2018  ·  2Comments  ·  Source: gatsbyjs/gatsby

I want to write an REST API call for the time of page is building, Its simile like we write GraphQL in template and at the time of build query trigger to get data on server and bind the response wit the page. In the same fashion I am also want to write one axios call and the data of the query will also be bind to the page after build.

Is there any way to implement this problem statement?

"gatsby": "1.9.246"

question or discussion

Most helpful comment

Does this tutorial help? https://www.gatsbyjs.org/docs/source-plugin-tutorial/
On 13 Jul 2018, 07:48 +0100, Sachin Jain notifications@github.com, wrote:

I want to write an REST API call for the time of page is building, Its simile like we write GraphQL in template and at the time of build query trigger to get data on server and bind the response wit the page. In the same fashion I am also want to write one axios call and the data of the query will also be bind to the page after build.
Is there any way to implement this problem statement?
"gatsby": "1.9.246"

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

All 2 comments

Does this tutorial help? https://www.gatsbyjs.org/docs/source-plugin-tutorial/
On 13 Jul 2018, 07:48 +0100, Sachin Jain notifications@github.com, wrote:

I want to write an REST API call for the time of page is building, Its simile like we write GraphQL in template and at the time of build query trigger to get data on server and bind the response wit the page. In the same fashion I am also want to write one axios call and the data of the query will also be bind to the page after build.
Is there any way to implement this problem statement?
"gatsby": "1.9.246"

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!

Was this page helpful?
0 / 5 - 0 ratings