News for hackers. Stuff that matters.

n1ru4l

Re:GraphQL Live Queries with live directive on Tuesday January 17, 2023 @03:21AM (#34410288)
You could also implement live queries using polling and the E-Tag, If-None-Match header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If...).

We experimented with something similar on a customer project where having a long-lived HTTP connection was not possible.

Re:GraphQL Live Queries with live directive on Tuesday January 17, 2023 @03:18AM (#34410269)
There are even more implementations of live queries available by now. e.g. https://github.com/samsarahq/thunder (go) or https://github.com/n1ru4l/graphql-live-query (JavaScript).
Re:GraphQL is now available on Supabase on Tuesday March 29, 2022 @03:05PM (#30846962)
Had a lot of fun collaborating with you on the supabase pg_graphql example, which of course is a HackerNews clone! https://github.com/supabase-community/supabase-graphql-examp...