File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ yarn install -D graphql-codegen-golang
19
19
## Usage: ` codegen.yaml `
20
20
21
21
``` yaml
22
- hooks :
23
- afterAllFileWrite : go fmt
24
-
25
22
schema : graphql/schema.graphql
26
23
documents : graphql/documents/**/*.graphql
27
24
generates :
28
- gen/output.go :
25
+ pkg/graphql/graphql.go :
26
+ hooks :
27
+ afterOneFileWrite : go fmt
29
28
plugins :
30
- - graphql-codegen-golang
29
+ - graphql-codegen-golang :
30
+ packageName : graphql # default
31
31
` ` `
32
32
33
33
## Configuration
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ documents:
4
4
- main.go
5
5
extensions :
6
6
codegen :
7
- hooks :
8
- afterAllFileWrite : go fmt
9
7
generates :
10
8
pkg/graphql/graphql.go :
9
+ hooks :
10
+ afterOneFileWrite : go fmt
11
11
plugins :
12
- - dist/index.js
12
+ - dist/index.js :
13
+ # packageName: graphql # default
You can’t perform that action at this time.
0 commit comments