Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically fetch data from a blog with GraphQL #3068

Closed
ivorpad opened this issue Nov 29, 2017 · 5 comments
Closed

Dynamically fetch data from a blog with GraphQL #3068

ivorpad opened this issue Nov 29, 2017 · 5 comments
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@ivorpad
Copy link
Contributor

ivorpad commented Nov 29, 2017

Since GraphQL queries are run at build time, how do I dynamically load data from a blog? I'm using gatsby-source-wordpress.

Everytime I create a new post I have to stop the server and start it again.

Thanks.

@ivorpad
Copy link
Contributor Author

ivorpad commented Nov 29, 2017

Closing per #3054

@ivorpad ivorpad closed this as completed Nov 29, 2017
@bjrn
Copy link

bjrn commented Nov 29, 2017

Hi @ivorpad, there's a related discussion here: #2847 and a pull request for adding an endpoint for refreshing external data: #3054 - might solve your use case too?

@ivorpad
Copy link
Contributor Author

ivorpad commented Nov 29, 2017

Hi @bjrn,

Thanks and yes, I closed the issue a few minutes ago.

@fk fk added the type: question or discussion Issue discussing or asking a question about Gatsby label Dec 4, 2017
@krsjoseph
Copy link
Contributor

How does this work in production? Do I rebuild and deploy every time a new post is added? @ivorpad

@ivorpad
Copy link
Contributor Author

ivorpad commented Jan 18, 2018

@krsjoseph Check this PR #3293 I haven't test it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

4 participants