News for hackers. Stuff that matters.
Re:Scaling to 1M active GraphQL subscriptions on Postgres by marton78 on Saturday June 01, 2019 @03:17AM (#20067828)
Hasura sure looks interesting, but two things make e hesitant:

1. The overly complicated schema it generates. For example, given an integer id, one can (and must) use various operators to query that id, e.g. `user(id: { _eq(1) })` rather than just `user(id: 1)`, where other operators are `_gt`, `_lt`, etc. To make this possible, hasura defines a comparison object, which results in a very long schema. However, often the only comparison that makes sense is equality, e.g. for IDs, so this should be optional.

2. More importantly, using Hasura establishes coupling between the DB and the GraphQL schemas. What if at a later stage one decides to remove information from the DB and move it to an external source? GraphQL was designed to hide such implementation details. With Hasura this is no longer possible.

Re:Scaling to 1M active GraphQL subscriptions on Postgres by sbecker on Saturday June 01, 2019 @03:41AM (#20067926)
Regarding your second point, I believe it is still possible to query an external source. Read the docs on “Remote Schemas” - https://docs.hasura.io/1.0/graphql/manual/remote-schemas/ind...
Re:Scaling to 1M active GraphQL subscriptions on Postgres by indigo945 on Saturday June 01, 2019 @05:12AM (#20068257)
And anyway, if the database schema changes, unless for some reason the turnover is very fast, you can still manually offer views for clients that require the legacy schema.
Re:Scaling to 1M active GraphQL subscriptions on Postgres by pyankoff on Saturday June 01, 2019 @03:37AM (#20067905)
Re 1: You can do `users_by_pk(id: 1)` for a while now.
Re:Scaling to 1M active GraphQL subscriptions on Postgres by tango12 on Saturday June 01, 2019 @03:39AM (#20067916)
Yep yep.

We’re also making everything in the Hasura schema aliasable via metadata so this becomes a more elegant name if you’d like!

Re:Scaling to 1M active GraphQL subscriptions on Postgres by marton78 on Saturday June 01, 2019 @05:38AM (#20068355)
Really? I can't seem to find that anywhere in the docs.