News for hackers. Stuff that matters.
Re:GraphQL Is a Trap? by algerd on Friday May 06, 2022 @10:05AM (#31285245)
Re:GraphQL Is a Trap? by misterS on Friday May 06, 2022 @10:09AM (#31285287)
Please provide some context, instead of just dumping an URL.
Re:GraphQL Is a Trap? by paddywack12 on Friday May 06, 2022 @10:16AM (#31285385)
I have some experience using Hasura. I've had a fantastic experience using GraphQL on the front end, but have found it confusing and challenging to configure everything properly on the back end. Hasura takes care of all the back end setup, you use it simply to configure your own api. You can either self-host, or use them as a service (I believe they're built on top of aws). For more context, I used it to build a react native app, and used apollo codegen to generate typescript types for all my queries, mutations, and subscriptions
Re:GraphQL Is a Trap? by nprateem on Friday May 06, 2022 @11:46AM (#31286537)
The free version doesn't support response caching, only the enterprise one. If you reach any kind of scale it's a one-way ticket to enterprise, or a complete rewrite, at least last I checked.
Re:GraphQL Is a Trap? by kall on Friday May 06, 2022 @07:13PM (#31290509)
I too wish hasura supported query caching in OSS. Not sure if you need to rewrite exactly, though. You could put something like GraphCDN in front of it or write your own cache layer that works similar to GraphCDN.
Re:GraphQL Is a Trap? by gavinray on Friday May 06, 2022 @10:15AM (#31285368)
I think the poster might have meant to reply to the top comment:

  > "On the other hand, when you are the one to implement the Graphql server, it feels like writing your own database. You have to create a query plan, handle optimizations, corner cases, etc."