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
1919## Usage: ` codegen.yaml `
2020
2121``` yaml
22- hooks :
23- afterAllFileWrite : go fmt
24-
2522schema : graphql/schema.graphql
2623documents : graphql/documents/**/*.graphql
2724generates :
28- gen/output.go :
25+ pkg/graphql/graphql.go :
26+ hooks :
27+ afterOneFileWrite : go fmt
2928 plugins :
30- - graphql-codegen-golang
29+ - graphql-codegen-golang :
30+ packageName : graphql # default
3131` ` `
3232
3333## Configuration
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ documents:
44 - main.go
55extensions :
66 codegen :
7- hooks :
8- afterAllFileWrite : go fmt
97 generates :
108 pkg/graphql/graphql.go :
9+ hooks :
10+ afterOneFileWrite : go fmt
1111 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