Home / Companies / LogRocket / Blog / Post Details
Content Deep Dive

Event-triggered GraphQL

Blog post from LogRocket

Post Details
Company
Date Published
Author
Daniel Phiri
Word Count
1,336
Language
-
Hacker News Points
-
Summary

Tanmai Gopal's talk on making static React sites dynamic at JAMStack SF inspired a project using Gridsome, a Vue-powered static site generator, to build a site that dynamically updates content via GraphQL and Netlify. The process involved installing Gridsome, deploying a Hasura GraphQL server, and creating a books table to serve as a data source. By integrating GraphQL queries within Gridsome, the site displayed book data, which could be updated locally with changes reflected only after a site rebuild when deployed. To automate this process, Hasura Event Triggers were set up to initiate a Netlify build upon data changes, ensuring the site content stayed current without manual intervention. The project demonstrated how combining these tools can achieve a dynamic-like experience on a static site, with the aid of event-driven updates and automated builds.