diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-29 20:56:03 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-29 20:56:03 +0200 |
commit | 08f03ecf3cbbc350585acf0492966681ec449a94 (patch) | |
tree | 1d1b439986be5a47eee6c8816d355c70c0008b9e | |
parent | c351cfd30d59c9179cc940f9ae15c461462e1a50 (diff) | |
download | git-bug-08f03ecf3cbbc350585acf0492966681ec449a94.tar.gz |
graphql: fix marshaling of label
-rw-r--r-- | bug/label.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bug/label.go b/bug/label.go index c84c56cd..ccfa15f4 100644 --- a/bug/label.go +++ b/bug/label.go @@ -25,5 +25,5 @@ func (l *Label) UnmarshalGQL(v interface{}) error { // MarshalGQL implements the graphql.Marshaler interface func (l Label) MarshalGQL(w io.Writer) { - w.Write([]byte(l)) + w.Write([]byte(`"` + l.String() + `"`)) } |