Re:Hasura raises $9.9M to simplify GraphQL
by markhalonen on Thursday February 27, 2020 @11:48AM
(#22434933)
After using GraphQL with code-generated Typescript types on the response, I can't imagine going back to REST and it's "hope and pray" the JSON looks how you expect it to look
[ Parent
| on HN ]
Re:Hasura raises $9.9M to simplify GraphQL
by karatestomp on Thursday February 27, 2020 @02:50PM
(#22437072)
I think part of the actual, non-hyped benefit is that it adds type definitions to incoming and outgoing fields on the client side. Working directly with JSON is kind of fucking awful. Attempts to fix it are often of an even more unpleasant "now you have two problems" sort (JSON-Schema, for example). Any well-supported standard for typing interfaces for data sent to the browser & other REST-consuming clients, even if the underlying transport remains JSON or whatever, is welcome.
Re:Hasura raises $9.9M to simplify GraphQL
by dpacmittal on Thursday February 27, 2020 @06:18PM
(#22439013)
> After using GraphQL with code-generated Typescript types on the response
What library are you using to generate the types?