Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 819 Bytes

File metadata and controls

27 lines (18 loc) · 819 Bytes

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.