TypeScript reactive resolvers for GraphQL code generator
GraphQL Code Generator plugin to generate TypeScript typing of reactive-graphql resolvers.
Installation
npm install graphql-codegen-typescript-reactive-resolvers --save-dev
resolverTypeWrapperSignature
config
Usage
Run gql-gen
as usual with this config:
schema: schema.json
overwrite: true
generates:
./src/resolvers-types.ts:
plugins:
- typescript-common
- typescript-reactive-resolvers
How does it work
It's almost the same than typescript-resolvers except that resolvers can return rxjs's Observable.