News for hackers. Stuff that matters.
Re:GraphJin – GraphQL to SQL Compiler by strbean on Wednesday June 01, 2022 @04:08PM (#31587323)
Sounds close to FastAPI[1]. Anyone know of equivalent / better frameworks in other languages?

[1]: https://fastapi.tiangolo.com/

Re:GraphJin – GraphQL to SQL Compiler by mirekrusin on Thursday June 02, 2022 @01:06AM (#31591543)
We use not so much frameworks but combination of lightweight libraries:

- runtime assertions [0] - to map unknown values at i/o boundary into statically typed code (rpc input parameters, sql results etc)

- template based sql combinators to sanitize sql/generate sql [1]

- jsonrpc over websockets - for bidirectional comms between f/e and b/e

It works very well for us for hundreds of rpcs - it's easy to manage things like permissioning/narrowing visibility and other aspects you need in business/enterprise-like setting ie. performance monitoring is very easy/straight forward.

[0] https://github.com/appliedblockchain/assert-combinators

[1] https://github.com/appliedblockchain/tsql

Re:GraphJin – GraphQL to SQL Compiler by martypitt on Wednesday June 01, 2022 @06:29PM (#31588959)
We build Taxi (https://taxilang.org), which is the type system for APIs, and then Vyne (https://vyne.co) which uses that types to automate all the plumbing.

It's pretty close to what's being described here, and removes the boilerplate in API orchestration.

Re:GraphJin – GraphQL to SQL Compiler by samarthr1 on Wednesday June 01, 2022 @09:54PM (#31590407)
How is taxilang different from openapi? Does it have client code gen capabilities?