Skip to content

Commit 9a61efb

Browse files
committed
config and documentation updates
1 parent 75e3a08 commit 9a61efb

File tree

4 files changed

+198
-1350
lines changed

4 files changed

+198
-1350
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ These plugins allow for the following approaches to Hasura client code generatio
1010

1111
2. **Fragment First**: Generate Hasura client code (gql & TypeScript) for every fragment defined in the target source code. This approach approach will generally provide greater long-term flexibility as it allows you to define and work with nested entity graphs. It also will only generate the code you need. However, it is slightly less automated, as it requires you to define graph fragments manually
1212

13+
## Quick Start
14+
15+
To quickly try out the code-generation:
16+
17+
1. Checkout the project to your local computer
18+
2. Navigate to the demo directory
19+
3. Run the following command
20+
21+
```
22+
yarn; yarn generate;
23+
```
24+
1325
## The Plugins
1426

1527
These plugins require and augment the existing fantastic GraphQL code generator plugins available from [graphql-code-generator](https://graphql-code-generator.com/)

demo/graphql-codegen-typescript.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generates:
1616
- typescript-react-apollo
1717
config:
1818
reactApolloVersion: 3
19-
withHooks: true
19+
withHooks: false
2020
withHOC: false
2121
withComponent: false
2222
skipTypename: false

0 commit comments

Comments
 (0)