@getstation/graphql-codegen-typescript-reactive-resolvers
TypeScript icon, indicating that this package has built-in type declarations

1.17.10 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @getstation/graphql-codegen-typescript-reactive-resolvers

Weekly Downloads

3

Version

1.17.10

License

MIT

Unpacked Size

138 kB

Total Files

31

Last publish

Collaborators

  • jeremy_vincent
  • v1s10n_4
  • matthd
  • nacryn
  • trapcodien
  • magne4000