News for hackers. Stuff that matters.
Re:Hasura raises $9.9M to simplify GraphQL by ihodes on Thursday February 27, 2020 @07:49AM (#22432740)
I'm curious if anyone here has compared Postgraphile to Hasura? My personal difficulty in implementing these is that there aren't good source control and code organization tools for SQL and managing rollbacks and rollforwards in a sane way.

(And a way that doesn't require writing rollbacks, which sometimes aren't even possible anyway).

Re:Hasura raises $9.9M to simplify GraphQL by xemoka on Thursday February 27, 2020 @10:53AM (#22434310)
When I tried them a few weeks back to compare, Hasura provided a nice interface, but has a lot going on itself (managing relationships on its own, some Auth stuff on its own) and its own tooling. Postgraphile relies more on postgres, it embeds it’s configuration in comments (or external to the dB). Both had difficulties with complex relationships and introspection across schema boundaries (I want a schema to house my data, and views in a separate schema that are accessed by the API tool). Both felt like I could configure this problem away, hasura wanted me to use their interface to do it, postgraphile wanted me to learn magic comments to attach to tables/columns etc (again, to tell a view that the table it’s drawing from has a relationship with another table).

PostGrest has none of these problems, but/and no graphql. It’s where I landed.

Also, check out dbmate for agnostic rollback management. All it needs is a way to template the sql and I’ll be happier. Some folks using Postgrest use Alembic and SQL Alchemy to build/manage migrations—I’m not sure where I sit on that yet.

Re:Hasura raises $9.9M to simplify GraphQL by sastraxi on Thursday February 27, 2020 @11:18AM (#22434535)
I've done exactly that with a sample food delivery project. Same frontend, but two different backends (one with Hasura, one with Postgraphile).

Feel free to check it out: https://github.com/sastraxi/great-bear

Re:Hasura raises $9.9M to simplify GraphQL by ihodes on Saturday February 29, 2020 @11:18AM (#22451273)
This is very cool, as is your git-like tool for PG! Thanks for sharing.
Re:Hasura raises $9.9M to simplify GraphQL by cpursley on Thursday February 27, 2020 @07:51AM (#22432752)
https://hasura.io/docs/1.0/graphql/manual/migrations/index.h...

Their migration tool is really nice; reminds me of Rails but better as you can write raw SQL.

https://github.com/hasura/graphql-engine/tree/master/scripts...

Re:Hasura raises $9.9M to simplify GraphQL by learc83 on Thursday February 27, 2020 @08:03AM (#22432827)
It's pretty easy to do raw sql rails migrations. I do it all the time.