News for hackers. Stuff that matters.
Re:GraphJin – GraphQL to SQL Compiler by geuis on Wednesday June 01, 2022 @07:26PM (#31589442)
I have never understood why people adopted graphql.

Despite years of asking people to explain its use, any example cases given can always be resolved with regular old http/REST style apis.

You still have to write sql queries to back your graphql calls anyway, so why are we spending extra obfuscation and effort instead of just getting the work done.

Facebook has so corrupted the engineering environment over the years that if a company recruiter contacts me and I find they're using any FB tech other than React, it's an instant no. I've walked over that luau bbq pit enough. React only gets the pass because it's not specifically bad tech, and it's too ubiquitous.

Re:GraphJin – GraphQL to SQL Compiler by andrew_ on Wednesday June 01, 2022 @07:45PM (#31589568)
I doubt this will change your mind or even pique your interest, but - Look into how PostGraphile and pg-graphql combine an entire request into a single SQL statement. Something that REST is not well-suited for and requires multiple requests to accomplish.
Re:GraphJin – GraphQL to SQL Compiler by gsvclass on Thursday June 02, 2022 @07:21AM (#31593576)
I won't comment on GraphQL itself. But GraphJin builds an internal graph of your db relationships, etc and uses that to write a single efficient query. Even if you have a deeply nested query, insert or update it will only result in a single efficient SQL query. Additionally we also support GraphQL subscriptions out of the box and soon, defer and async as well allowing you to build live updating apps using the same GraphQL queries.