Fix documentation for optional: value (#229)

A couple people noticed the documentation didn't match
the actual option syntax we settled on. Now it does.

Fixes #226, replaces #222 (closed due to CLA issues).
This commit is contained in:
Ben Kraft
2022-10-23 21:20:10 -07:00
committed by GitHub
parent 85e2e8dffd
commit 1d71fffcb6
+1 -3
View File
@@ -97,8 +97,6 @@ use_struct_references: boolean
# Defaults to false. # Defaults to false.
use_extensions: boolean use_extensions: boolean
# Customize how optional fields are handled.
optional:
# Customize how models are generated for optional fields. This can currently # Customize how models are generated for optional fields. This can currently
# be set to one of the following values: # be set to one of the following values:
# - value (default): optional fields are generated as values, the same as # - value (default): optional fields are generated as values, the same as
@@ -111,7 +109,7 @@ optional:
# pointers-to-slices, so the GraphQL type `[String]` will map to the Go # pointers-to-slices, so the GraphQL type `[String]` will map to the Go
# type `[]*string`, not `*[]*string`; GraphQL null and empty list simply # type `[]*string`, not `*[]*string`; GraphQL null and empty list simply
# map to Go nil- and empty-slice. # map to Go nil- and empty-slice.
output: value optional: value
# A map from GraphQL type name to Go fully-qualified type name to override # A map from GraphQL type name to Go fully-qualified type name to override
# the Go type genqlient will use for this GraphQL type. # the Go type genqlient will use for this GraphQL type.