INNER CODE UNIT · Go
Gql__input_
ysugimoto/grpc-graphql-gateway · protoc-gen-graphql/template.go:183
func Gql__input_{{ .TypeName }}() *graphql.InputObject {
if gql__input_{{ .TypeName }} == nil {
gql__input_{{ .TypeName }} = graphql.NewInputObject(graphql.InputObjectConfig{
Name: "{{ $.RootPackage.CamelName }}_Input_{{ .TypeName }}",
Fields: graphql.InputObjectConfigFieldMap{
{{- range .Fields }}
"{{ .FieldName }}": &graphql.InputObjectFieldConfig{
{{- if .Comment }}
Description: ` + "`" + `{{ .Comment }}` + "`" + `,
{{- end }}
Type: {{ .FieldTypeInput $.RootPackage.Name }},
},
{{- end }}
},
})
}
return gql__input_{{ .TypeName }}
}