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

getstation/graphql-codegen-typescript-reactive-resolvers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

TypeScript reactive resolvers for GraphQL code generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published