We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b977d commit 877192fCopy full SHA for 877192f
types.go
@@ -19,10 +19,14 @@ func (r *Result) HasErrors() bool {
19
}
20
21
func (r *Result) addExtensionResults(p *ExecuteParams) {
22
- r.Extensions = map[string]interface{}{}
23
- for _, ext := range p.Schema.extensions {
24
- if ext.HasResult() {
25
- r.Extensions[ext.Name()] = ext.GetResult(p.Context)
+ if len(p.Schema.extensions) != 0 {
+ r.Extensions = map[string]interface{}{}
+ for _, ext := range p.Schema.extensions {
+ if ext.HasResult() {
26
+ r.Extensions[ext.Name()] = ext.GetResult(p.Context)
27
+ }
28
29
+ } else {
30
+ r.Extensions = nil
31
32
0 commit comments