With this kind of request, pulling post data from Contentful with GraphQL using gatsby-source-contentful
plugin, looking for a way to access the post published date (post.sys.publishedAt) or updatedAt !
{
contentfulPost(id: { eq: 'postId' }) {
--> publishedAt ?
title
image {
responsiveResolution(width: 500, height: 500) {
src
srcSet
height
width
}
}
}