~emersion/gqlclient

a792c03ae621b1fce4f945b070834914646c499e — Simon Ser 1 year, 5 months ago da31090
cmd/gqlclientgen: document Value field for GQL interfaces/unions
1 files changed, 1 insertions(+), 0 deletions(-)

M cmd/gqlclientgen/main.go
M cmd/gqlclientgen/main.go => cmd/gqlclientgen/main.go +1 -0
@@ 198,6 198,7 @@ func genDef(schema *ast.Schema, def *ast.Definition, omitDeprecated bool) *jen.S
			fields = append(fields, jen.Line())
		}
		fields = append(fields,
			jen.Comment("Underlying value of the GraphQL "+strings.ToLower(string(def.Kind))),
			jen.Id("Value").Id(def.Name+"Value").Tag(map[string]string{"json": "-"}),
		)