diff --git a/gqlerrors/formatted.go b/gqlerrors/formatted.go index fb422b63..f14dd711 100644 --- a/gqlerrors/formatted.go +++ b/gqlerrors/formatted.go @@ -13,7 +13,7 @@ type ExtendedError interface { type FormattedError struct { Message string `json:"message"` - Locations []location.SourceLocation `json:"locations"` + Locations []location.SourceLocation `json:"locations,omitempty"` Path []interface{} `json:"path,omitempty"` Extensions map[string]interface{} `json:"extensions,omitempty"` originalError error