0.0.3 • Published 6 years ago

graphql-resolver-codegen v0.0.3

Weekly downloads
99
License
MIT
Repository
github
Last release
6 years ago

Introduction

Generate TS Resolvers

Feature

  1. Autogenerate resolver types
  2. Supports graphql-import

Usage

graphql-resolver-codegen --help
Usage: <command> graphql-resolver-codegen -s [schema-path] -o [output-path] -g [generator] -i
[interfaces]

Options:
  --help             Show help                                         [boolean]
  --version          Show version number                               [boolean]
  -s, --schema-path  GraphQL schema file path                         [required]
  -o, --output       Output file/folder path [default:
                     ./generated/resolvers[.ts]]
  -g, --generator    Generator to use [default: typescript, options: reason]
  -i, --interfaces   Path to the interfaces folder used for scaffolding

  Possible commands: scaffold, interfaces

Example

To generate both resolvers and typings for a given GraphQL schema, run the following commands
  1. Run graphql-resolver-codegen scaffold -s -o /generated/resolvers.ts -g typescript

  2. Run graphql-resolver-codegen scaffold -s -o -g typescript -i /generated/resolvers.ts

Not the scaffold command take an additional argument i which adds import for generated interfaces in scaffolded code.

0.3.1

6 years ago

0.3.0

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago