Create a GatsbyJS Blog #4 - Creating & Fetching posts

preview_player
Показать описание
We can now create new posts, edit them and query them using GraphQL. After getting the data, we can display them on any page of our application.

-------

-------

Рекомендации по теме
Комментарии
Автор

Hi. I'm following your tutorial since last month. The content is by far very good. Can you please increase the font size for your next tutorials. I've hard time to look into your code on smaller screen.

noormuhammad
Автор

How to paginate the posts? For example, show at max 3 posts per page.

zulhilmizainudin
Автор

Hi im gettin the following error can you please help me:
node is not defined no-undef

jayakarnarsampally
Автор

Thanks for this great content, I am following along and it is very helpful.
I want to ask do you build some of parts only by yourself such as graphQL and descending the date parts? Because it's a little complex and I'm thinking what would I do If i was working for a company and stuck at some point.

doganozgur
Автор

trying this out, however I'm having a lot of issues with the date formatString, currently I have the query exactly as you do as well as the date format in the md post, but it just returns:
{
"errors": [
{
"message": "Unknown argument \"formatString\" on field \"date\" of type \"frontmatter_2\".",
"locations": [
{
"line": 8,
"column": 16
}
]
}
]
}

brixxy_tv
Автор

Thank you for this great tutorial. i got an error, and for found this error i restarted again. now i'm found this error (sort: {order: DESC}) . this line cause the error. i deleted but do you know any other to order posts?

skevserr
Автор

Hi, I follow this but using drupal as backend...it works fine, the only problem is..if I create new content from backend graphql doesnt fetch the data automatically, I need to restart the server by run "gatsby develop" command to fetch new data. Is there any way to fetch it automatically every time we create new data?

yalasta
join shbcf.ru