News for hackers. Stuff that matters.
Re:GraphJin – GraphQL to SQL Compiler by _query on Wednesday June 01, 2022 @03:24PM (#31586751)
If you're looking for something like GraphJin, PostGraphile or Hasura but with less boilerplate and complexity, more end-to-end typesafe approach and optimistic updates, check out Thin Backend https://thin.dev/ (https://github.com/digitallyinduced/thin-backend)

Thin Backend takes a bit more of a higher level approach to database operations than services like GraphJin, but solves fundamentally the same problem. Doing things in a more structured way also allows us to do things like optimistic updates by default that require manual work with GraphQL tools.

To see some code examples, here's a small example project done with thin-backend: https://github.com/digitallyinduced/thin-backend-todo-app It's running on Vercel here: https://thin-backend-todo-app.vercel.app/

If you're interested in how building a small demo app with Thin looks like, check this video https://youtu.be/-jj19fpkd2c

Re:GraphJin – GraphQL to SQL Compiler by gsvclass on Thursday June 02, 2022 @07:08AM (#31593505)
Happy you're sharing this on here, glad to have more options on the table. However I will say GraphJin is not complex to use nor does it have any boilerplate. It's feature rich and hence has knobs to help you tune it to your needs. However it's defaults are well thought out and so should work out of the box in most cases. For example to use GraphJin as a library in your own code this is all it takes.

Here's a quick example of using it as a library in your own code.

https://gist.github.com/dosco/2422006fe322bd81c00988570f50a5...

Re:GraphJin – GraphQL to SQL Compiler by MarkMarine on Wednesday June 01, 2022 @04:17PM (#31587461)
> less boilerplate and complexity

Kind of lame to pitch this in the comments on GraphJin. Make your own post and try to get on the front page on your own merits without bagging on this.

Re:GraphJin – GraphQL to SQL Compiler by verdverm on Wednesday June 01, 2022 @04:29PM (#31587624)
I tend to disagree. A lot of discovery happens on HN.

Many posts will have alternatives posted in the comments. Often the creator is the best to provide links and describe the differences.

My alternative is a generalized DSL to code framework powered by CUE. You can write directly in the output and later regen because it uses diff3. Generate all the things in any languages!

https://docs.hofstadter.io

Re:GraphJin – GraphQL to SQL Compiler by _query on Wednesday June 01, 2022 @04:19PM (#31587492)
We have a couple users recently that are switching from different GraphQL services, so I expect this to be relevant for people checking out GraphJin :)

Thin was on the Frontpage of HN around a month ago: https://news.ycombinator.com/item?id=31164799