Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
readme: document interfaces, scaffold command separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Divyendu Singh committed Aug 16, 2018
1 parent c5ff441 commit b2adafd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ Options:
Possible commands: scaffold, interfaces
```
### Commands
| Command | Description | Flag -s | Flag -o | Flag -g | Flag -i | Flag -f |
| ---------- | --------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------- | ---------- | ------------------------------------- | ------------------------------------------------------------------------ |
| interfaces | Generate type safe interfaces for resolves based on your schema. | Path to input schema | Path to generate interfaces file at | typescript | NA | NA |
| scaffold | Scaffold resolvers based on your schema that rely on the generated interface for type safety. | Path to input schema | Path to folder for generating resolvers | typescript | Path to the generated interfaces file | Force write resolver files when there is a collision with existing files |
Note: while using `scaffold`, types.ts will always be generated irrespective of `-f` flag.
### Example
##### To generate both resolvers and typings for a given GraphQL schema, run the following commands
Expand Down

0 comments on commit b2adafd

Please sign in to comment.