News for hackers. Stuff that matters.
Re:Ask HN: Were you happy moving your API from REST to GraphQL? by infogulch on Thursday July 19, 2018 @12:13PM (#17567702)
graphql-tag [1] is very close to automatic typing for TypeScript. It lets you import a `x.gql` file (or whatever suffix) that contains query text directly, and translates the contained queries into named input/output types and parsed query documents based on your schema.

It's great but it's not quite perfect for me: I'd prefer if it produced a function that accepts your query executor and inputs, and returns an observable of the result, and it doesn't work very smoothly with angular (especially 5+).

[1]: https://github.com/apollographql/graphql-tag

There are no comments on this comment yet.