A problem I’ve been facing is how to remove content in Gatsby that has a deadline. Here I’ll show you the approach I’m using to filter content at query time using GraphQL and then automate the build process.
Perhaps the easiest way to format dates in Gatsby is at query-time using Gatsby’s GraphQL layer.
Watch mode allows you to see realtime content updates without having to manually re-run the build process.
Learn how to query structured content in Sanity with GraphQl and display the content in a Gatsby website
How to configure Gatsby to play nice with Sanity. Including configuring the gatsby-source-sanity plugin and some cool extra development features that ship with Sanity.