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