Skip to content

Commit 16cc3c6

Browse files
committed
Add optional extensions field to errors
1 parent 370e0ac commit 16cc3c6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

errors/errors.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import (
55
)
66

77
type QueryError struct {
8-
Message string `json:"message"`
9-
Locations []Location `json:"locations,omitempty"`
10-
Path []interface{} `json:"path,omitempty"`
11-
Rule string `json:"-"`
12-
ResolverError error `json:"-"`
13-
PanicValue interface{} `json:"-"`
8+
Message string `json:"message"`
9+
Locations []Location `json:"locations,omitempty"`
10+
Path []interface{} `json:"path,omitempty"`
11+
Extensions map[string]interface{} `json:"extensions,omitempty"`
12+
Rule string `json:"-"`
13+
ResolverError error `json:"-"`
14+
PanicValue interface{} `json:"-"`
1415
}
1516

1617
type Location struct {

0 commit comments

Comments
 (0)