github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/example/federation/products/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/generated.go 8 package: generated 9 10 federation: 11 filename: graph/generated/federation.go 12 package: generated 13 14 # Where should any generated models go? 15 model: 16 filename: graph/model/models_gen.go 17 package: model 18 19 # Where should the resolver implementations go? 20 resolver: 21 layout: follow-schema 22 dir: graph 23 package: graph 24 25 # Optional: turn on use `gqlgen:"fieldName"` tags in your models 26 # struct_tag: json 27 28 # Optional: turn on to use []Thing instead of []*Thing 29 # omit_slice_element_pointers: false 30 31 # Optional: set to speed up generation time by not performing a final validation pass. 32 # skip_validation: true 33 34 # gqlgen will search for any type names in the schema in these go packages 35 # if they match it will use them, otherwise it will generate them. 36 autobind: 37 - "github.com/99designs/gqlgen/example/federation/products/graph/model" 38 39 # This section declares type mapping between the GraphQL and go type systems 40 # 41 # The first line in each type will be used as defaults for resolver arguments and 42 # modelgen, the others will be allowed when binding to fields. Configure them to 43 # your liking 44 models: 45 ID: 46 model: 47 - github.com/99designs/gqlgen/graphql.ID 48 - github.com/99designs/gqlgen/graphql.Int 49 - github.com/99designs/gqlgen/graphql.Int64 50 - github.com/99designs/gqlgen/graphql.Int32 51 Int: 52 model: 53 - github.com/99designs/gqlgen/graphql.Int 54 - github.com/99designs/gqlgen/graphql.Int64 55 - github.com/99designs/gqlgen/graphql.Int32