...

Text file src/edge-infra.dev/pkg/edge/api/graph/gqlgen.yml

Documentation: edge-infra.dev/pkg/edge/api/graph

     1# Where are all the schema file is located
     2schema:
     3  - schema/*.graphql
     4
     5# Where should the generated server code go?
     6exec:
     7  filename: generated/generated.go
     8  package: generated
     9
    10# Uncomment to enable federation
    11# federation:
    12#   filename: generated/federation.go
    13#   package: generated
    14
    15# Where should any generated models go?
    16model:
    17  filename: model/models_gen.go
    18  package: model
    19
    20# Where should the resolver implementations go?
    21resolver:
    22  layout: follow-schema
    23  dir: resolver
    24  package: resolver
    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#  - "edge-infra.dev/pkg/edge/api/graph/model"
    39
    40directives:
    41  validation_constraint:
    42    skip_runtime: true
    43
    44# This section declares type mapping between the GraphQL and go type systems
    45#
    46# The first line in each type will be used as defaults for resolver arguments and
    47# modelgen, the others will be allowed when binding to fields. Configure them to
    48# your liking
    49models:
    50  ID:
    51    model:
    52      - github.com/99designs/gqlgen/graphql.ID
    53      - github.com/99designs/gqlgen/graphql.Int
    54      - github.com/99designs/gqlgen/graphql.Int64
    55      - github.com/99designs/gqlgen/graphql.Int32
    56  Int:
    57    model:
    58      - github.com/99designs/gqlgen/graphql.Int
    59      - github.com/99designs/gqlgen/graphql.Int64
    60      - github.com/99designs/gqlgen/graphql.Int32
    61  UUID:
    62    model:
    63      - github.com/99designs/gqlgen/graphql.UUID

View as plain text