News for hackers. Stuff that matters.
Re:Streaming data in Postgres to 1M clients with GraphQL by nicoburns on Monday October 17, 2022 @06:42AM (#33231786)
We’ve been using hasura at work, but we’ve stopped using it for everything other than subscriptions in favour of hand written rest apis. The problem for us wasn’t really graphql itself, but the fact that the client app was determining the query. If the client could request a “named query”, that was then determined by the backend (perhaps via a web hook?)then we’d have been able to use hasura more.
Re:Streaming data in Postgres to 1M clients with GraphQL by llamaLord on Monday October 17, 2022 @07:35AM (#33232172)
I’ve been a big hasura user for a while. Give their RESTified endpoints a go, solves this issue for you and still gives you all and access control goodness and subscriptions under one roof.
Re:Streaming data in Postgres to 1M clients with GraphQL by Dystopian on Monday October 17, 2022 @08:25AM (#33232565)
Hasura also has controls for allow listing opertaions for that composed on the FE problem (https://hasura.io/docs/latest/security/allow-list/).

There's also a few NPM packages for auto-generating that allow list from your project (https://www.npmjs.com/search?q=hasura%20allow%20list -- the one I've used before was from `tallerdevs`).