News for hackers. Stuff that matters.
Re:GraphJin – GraphQL to SQL Compiler by spoiler on Wednesday June 01, 2022 @03:36PM (#31586881)
Ah alright. So you do complex input (example) transformation as part of the business logic in the middle tier, and then forward it to the db? Does that mean you parse the query in the middle end too, or just parts of it (I'm not that knowledgeable about gql, so sorry if the question makes no sense)?

We are soon going to be evaluating a similar idea at work, so I'm just curious how it works. If it's lengthy you don't have to go into too much detail if it's a bother to explain!

Re:GraphJin – GraphQL to SQL Compiler by ramesh31 on Wednesday June 01, 2022 @04:06PM (#31587303)
It's called a "BFF" (Backend For Frontend) https://blog.bitsrc.io/bff-pattern-backend-for-frontend-an-i...

It's a really nice pattern particularly for multi-client applications consuming the same resources. Instead of trying to make a single REST api work for desktop, mobile, and web, you can have a BFF for each which all share the same GQL definitions and data access patterns, but can have platform specific routing/handling/auth logic.

Re:GraphJin – GraphQL to SQL Compiler by theogravity on Wednesday June 01, 2022 @04:13PM (#31587402)
The middle tier does not have to be a GQL server; it can be REST or some other protocol like gRPC. The middle tier has a GQL client that calls the PostGraphile backend.

Yes to your question overall.

As another reply states, it's exactly a backend for a frontend.