Skip to content

Commit 710d028

Browse files
Don't replace empty response with null. That empty response may be place holder for other async resource (Reference,Connection)
1 parent 7c3d20a commit 710d028

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

schema/query/projection_evaluator.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,6 @@ func evalProjection(ctx context.Context, p Projection, payload map[string]interf
214214
return fmt.Errorf("%s: error resolving field handler on sub-field: %v", name, err)
215215
}
216216
}
217-
// Return `null` for missing result instead of empty object
218-
if m, ok := v.(map[string]interface{}); ok && len(m) == 0 {
219-
v = nil
220-
}
221217
resMu.Lock()
222218
res[name] = v
223219
resMu.Unlock()

0 commit comments

Comments
 (0)