...

Text file src/github.com/99designs/gqlgen/api/testdata/federation2/gqlgen.yml

Documentation: github.com/99designs/gqlgen/api/testdata/federation2

     1# Where are all the schema files located? globs are supported eg  src/**/*.graphqls
     2schema:
     3  - graph/*.graphqls
     4
     5# Where should the generated server code go?
     6exec:
     7  filename: graph/generated.go
     8  package: graph
     9
    10# Uncomment to enable federation
    11federation:
    12  filename: graph/federation.go
    13  package: graph
    14
    15# Where should any generated models go?
    16model:
    17  filename: graph/model/models_gen.go
    18  package: model
    19
    20# Where should the resolver implementations go?
    21resolver:
    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: turn off to make struct-type struct fields not use pointers
    33# e.g. type Thing struct { FieldA OtherThing } instead of { FieldA *OtherThing }
    34# struct_fields_always_pointers: true
    35
    36# Optional: turn off to make resolvers return values instead of pointers for structs
    37# resolvers_always_return_pointers: true
    38
    39# Optional: turn on to return pointers instead of values in unmarshalInput
    40# return_pointers_in_unmarshalinput: false
    41
    42# Optional: wrap nullable input fields with Omittable
    43# nullable_input_omittable: true
    44
    45# Optional: set to speed up generation time by not performing a final validation pass.
    46# skip_validation: true
    47
    48# gqlgen will search for any type names in the schema in these go packages
    49# if they match it will use them, otherwise it will generate them.
    50autobind:
    51  - "github.com/99designs/gqlgen/api/testdata/default/graph/model"
    52
    53# This section declares type mapping between the GraphQL and go type systems
    54#
    55# The first line in each type will be used as defaults for resolver arguments and
    56# modelgen, the others will be allowed when binding to fields. Configure them to
    57# your liking
    58models:
    59  ID:
    60    model:
    61      - github.com/99designs/gqlgen/graphql.ID
    62      - github.com/99designs/gqlgen/graphql.Int
    63      - github.com/99designs/gqlgen/graphql.Int64
    64      - github.com/99designs/gqlgen/graphql.Int32
    65  Int:
    66    model:
    67      - github.com/99designs/gqlgen/graphql.Int
    68      - github.com/99designs/gqlgen/graphql.Int64
    69      - github.com/99designs/gqlgen/graphql.Int32

View as plain text