github.com/mstephano/gqlgen-schemagen@v0.0.0-20230113041936-dd2cd4ea46aa/api/testdata/default/gqlgen.yml (about) 1 # Where are all the schema files located? globs are supported eg src/**/*.graphqls 2 schema: 3 - graph/*.graphqls 4 5 # Where should the generated server code go? 6 exec: 7 filename: graph/generated.go 8 package: graph 9 10 # Uncomment to enable federation 11 # federation: 12 # filename: graph/federation.go 13 # package: graph 14 15 # Where should any generated models go? 16 model: 17 filename: graph/model/models_gen.go 18 package: model 19 20 # Where should the resolver implementations go? 21 resolver: 22 layout: follow-schema 23 dir: graph 24 package: graph 25 26 # Optional: turn on use `gqlgen:"fieldName"` tags in your models 27 # struct_tag: json 28 29 # Optional: turn on to use []Thing instead of []*Thing 30 # omit_slice_element_pointers: false 31 32 # Optional: set to speed up generation time by not performing a final validation pass. 33 # skip_validation: true 34 35 # gqlgen will search for any type names in the schema in these go packages 36 # if they match it will use them, otherwise it will generate them. 37 autobind: 38 - "github.com/mstephano/gqlgen-schemagen/api/testdata/default/graph/model" 39 40 # This section declares type mapping between the GraphQL and go type systems 41 # 42 # The first line in each type will be used as defaults for resolver arguments and 43 # modelgen, the others will be allowed when binding to fields. Configure them to 44 # your liking 45 models: 46 ID: 47 model: 48 - github.com/mstephano/gqlgen-schemagen/graphql.ID 49 - github.com/mstephano/gqlgen-schemagen/graphql.Int 50 - github.com/mstephano/gqlgen-schemagen/graphql.Int64 51 - github.com/mstephano/gqlgen-schemagen/graphql.Int32 52 Int: 53 model: 54 - github.com/mstephano/gqlgen-schemagen/graphql.Int 55 - github.com/mstephano/gqlgen-schemagen/graphql.Int64 56 - github.com/mstephano/gqlgen-schemagen/graphql.Int32