graphql-typed-client
graphql-typed-client copied to clipboard
A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, cus...
I created custom `Time` type map like this: ``` Time: { serialize: (time: moment.Moment) => time.format("HH:mm:ss"), deserialize: (time: string) => moment(time, "HH:mm:ss"), } ``` When mutation accepts single `Time` value,...
Is there anyway to specify an alias in the query object? My use case - I have a list of product ID's that I want to fetch from shopify. I...
[graphql-zeus](https://github.com/graphql-editor/graphql-zeus) seems like a library that is similar to this one. What advantages does this library have over graphql-zeus? zeus seems to have solved some issues that this library has:...
I've lost a lot of files because of this. Stupidest thing I ever seen.
Fixes #37 Explicitly types the helper array `{name}_possibleTypes` as `String[]`. An alternative would be to check if the arrays are empty, and don't emit the code in that case (in...
For all unions/interfaces/objects in the GraphQL schema, the generated code includes a "type-guard" called `is{name}`, which uses a string array `{name}_possibleTypes` with the type-names implementing the source value. That array...
Fixes #35 Forces NodeJS to generate a POSIX-compatible relative path.
The example in the README for a custom scalar type mapping does not work on Windows. ``` module.exports = { endpoint: 'http://example.com/graphql', output: 'clients/myClient', options: { typeMapper: { location: 'path/to/typeMapper',...
i have deployed my hasura app on hasura-cloud, and trying to call a subscription using the generated typed client, but somehow there is no log for the subscription on the...
Added option to set headers through cli tool