2 ms·
This is a really powerful use-case! If you saw Alex Gaynor's election tracker[1] during the US 2020 elections, it's exactly how it worked. Actions scraped the N
by idan 5y ago
This is a really powerful use-case! If you saw Alex Gaynor's election tracker[1] during the US 2020 elections, it's exactly how it worked. Actions scraped the NYT election results.json, and a static site on GH pages rendered the data, XHRing the scraped JSON out of the repo periodically.
There's no GraphQL backend yet! We've only done HTTP and SQL backends so far. If your GQL query is simple enough, you might be able to squeak by with an HTTP flat action whose target is https://your.site/graphql?query=whatever https://your.site/graphql?query=whatever ?
[1] https://alex.github.io/nyt-2020-election-scraper/battleground-state-changes.html# https://alex.github.io/nyt-2020-election-scraper/battlegroun...