@getstation/graphql-codegen-typescript-reactive-resolvers
v1.17.10
Published
graphql-codegen-cli template for TypeScript typings of reactive resolvers
Downloads
2
Keywords
Readme
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
⚠️ It overrides the 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.