Live data from Hacker News

Hasura raises $9.9M to simplify GraphQL

techcrunch.com

41–50 of 199 posts

Re: Hasura raises $9.9M to simplify GraphQL

#41
post #2

I tend to prefer PostgREST's[1] syntax over GraphQL for when I need flexible client-side queries. It's way more intuitive for me. [1] http://postgrest.org/

It's also really nice, I think the appeal of Hasura is to leverage all the GraphQL clients. Things like Apollo save a lot of time in React and iOS for example since they abstract the whole service layer. I'm not sure if something similar exists for PostgREST.

Re: Hasura raises $9.9M to simplify GraphQL

#45
post #42

Myt pet peeve with GraphQL is, why not just use JS objects, and use JSON for serialization!? query = {user: {id, name}}

There are quite a few ongoing attempts at creating a JS fluent client for GraphQL.

We covered a bunch of them here:

https://hasura.io/blog/fluent-graphql-clients-how-to-write-q...

Re: Hasura raises $9.9M to simplify GraphQL

#46
post #23
post #20

Earlier quoted context omitted.

The sync part is very interesting, I like that it’s happening after the mutation so that Im not forced to reimplement the graphql types myself. Will give it a try, thanks

Yep! The GraphQL resolution logic and the permissions get reused automatically.

I gave it a try, to be honest, I feel it too cumbersone, I expected it to use already available mutations not just copying existing types.

What I really want/need is custom logic that run IN the resolvers of already available query/mutations with the request as input and the possibility to either return an error or modify the payload before it hit the database

but I know is still in preview, will check it again when released

Re: Hasura raises $9.9M to simplify GraphQL

#47
post #43

After trying Hasura, Prisma, and PostGraphile, my conclusion is that PostGraphile is way ahead of all this. Please all have a look at PostGraphile, it is amazing, even more than Hasura!

I agree. PostGraphile needs to market itself though. They need a Dev Rel to make more people aware of it.

Re: Hasura raises $9.9M to simplify GraphQL

#48
post #5

Hasura is a game-changer. I'm never writing CRUD backend apps again by hand. Combine Hasura (automatic GraphQL on top of PostgreSQL) with React Admin (low code CRUD apps) and you can build an entire back office admin suite or form app (API endpoints and admin front end) in a matter of hours. This adaptor connects react-admin with Hasura: https://github.com/Steams/ra-data-hasura-graphql Here's a reference application…

Part of what I'm doing is working on a CRUD backend.

The thing has a bunch of complex business and authorization rules. Not to mention a bunch of per-client customization. There's also some neat handling around versioning and copy-on-write type behavior to provide a mix of immutability and space saving.

To me, this is CRUD because: most resources literally have 4 endpoints (create, index, update and delete). We write a ton of tests to cover all the cases. It's time consuming, even tedious, and it's boring / simple compared to the user facing stuff we do.

I've never touched GraphQL, so can that really save me months of work? Or would it save me about as much time as Rails would (which would be not a lot) ?

Re: Hasura raises $9.9M to simplify GraphQL

#49
post #22

This is fantastic to see. First time I tried out Hasura back in late 2018 I was AMAZED. After going through multiple different stacks such as MeteorJS, Firebase, building my own REST/GraphQL API etc. Nothing really felt right. That was until I found out about Hasura. I actually had to assemble a quick meetup at the co-working space I was on (true story) to show everybody this software. Hasura Tweet: https://twitter.c…

Do you offer rate and depth limiting?
Post reply on HN