zotregistry.dev/zot@v1.4.4-0.20240314164342-eec277e14d20/pkg/extensions/search/gqlgen.yml (about) 1 # Where are all the schema files located? globs are supported eg src/**/*.graphqls 2 schema: 3 - ./*.graphql 4 5 # Where should the generated server code go? 6 exec: 7 filename: gql_generated/generated.go 8 package: gql_generated 9 10 # Uncomment to enable federation 11 # federation: 12 # filename: graph/gql_generated/federation.go 13 # package: generated 14 15 # Where should any generated models go? 16 model: 17 filename: gql_generated/models_gen.go 18 package: gql_generated 19 20 # Where should the resolver implementations go? 21 resolver: 22 layout: follow-schema 23 dir: ./ 24 package: search 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: set to speed up generation time by not performing a final validation pass. 40 # skip_validation: true 41 42 # gqlgen will search for any type names in the schema in these go packages 43 # if they match it will use them, otherwise it will generate them. 44 autobind: 45 # - "zotregistry.dev/zot/pkg/extensions/search/gql_generated" 46 47 # This section declares type mapping between the GraphQL and go type systems 48 # 49 # The first line in each type will be used as defaults for resolver arguments and 50 # modelgen, the others will be allowed when binding to fields. Configure them to 51 # your liking 52 models: 53 ID: 54 model: 55 - github.com/99designs/gqlgen/graphql.ID 56 - github.com/99designs/gqlgen/graphql.Int 57 - github.com/99designs/gqlgen/graphql.Int64 58 - github.com/99designs/gqlgen/graphql.Int32 59 Int: 60 model: 61 - github.com/99designs/gqlgen/graphql.Int 62 - github.com/99designs/gqlgen/graphql.Int64 63 - github.com/99designs/gqlgen/graphql.Int32