graphql: fix marshaling of label

This commit is contained in:
Michael Muré 2018-07-29 20:56:03 +02:00
parent c351cfd30d
commit 08f03ecf3c
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -25,5 +25,5 @@ func (l *Label) UnmarshalGQL(v interface{}) error {
// MarshalGQL implements the graphql.Marshaler interface // MarshalGQL implements the graphql.Marshaler interface
func (l Label) MarshalGQL(w io.Writer) { func (l Label) MarshalGQL(w io.Writer) {
w.Write([]byte(l)) w.Write([]byte(`"` + l.String() + `"`))
} }