diff --git a/init-templates/gqlgen.yml.gotmpl b/init-templates/gqlgen.yml.gotmpl index 5c485c2aff5..c1d825c8b8d 100644 --- a/init-templates/gqlgen.yml.gotmpl +++ b/init-templates/gqlgen.yml.gotmpl @@ -22,6 +22,7 @@ resolver: layout: follow-schema dir: graph package: graph + filename_template: "{name}.resolvers.go" # Optional: turn on use ` + "`" + `gqlgen:"fieldName"` + "`" + ` tags in your models # struct_tag: json @@ -29,6 +30,15 @@ resolver: # Optional: turn on to use []Thing instead of []*Thing # omit_slice_element_pointers: false +# Optional: turn on to skip generation of ComplexityRoot struct content and Complexity function +# omit_complexity: false + +# Optional: turn on to not generate any file notice comments in generated files +# omit_gqlgen_file_notice: false + +# Optional: turn on to exclude the gqlgen version in the generated file notice. No effect if `omit_gqlgen_file_notice` is true. +# omit_gqlgen_version_in_file_notice: false + # Optional: turn off to make struct-type struct fields not use pointers # e.g. type Thing struct { FieldA OtherThing } instead of { FieldA *OtherThing } # struct_fields_always_pointers: true @@ -36,9 +46,15 @@ resolver: # Optional: turn off to make resolvers return values instead of pointers for structs # resolvers_always_return_pointers: true +# Optional: turn on to return pointers instead of values in unmarshalInput +# return_pointers_in_unmarshalinput: false + # Optional: set to speed up generation time by not performing a final validation pass. # skip_validation: true +# Optional: set to skip running `go mod tidy` when generating server code +# skip_mod_tidy: true + # gqlgen will search for any type names in the schema in these go packages # if they match it will use them, otherwise it will generate them. autobind: