Skip to content

Commit 38cd79e

Browse files
committed
fix invalid json access
1 parent 11b884e commit 38cd79e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/graphql/graphql.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class GraphQLD(T, QContext = DefaultContext) {
8686
name, parent, args
8787
);
8888
Json ret = Json.emptyObject();
89-
if(parent.type != Json.Type.null_ && name in parent) {
89+
if(parent.type == Json.Type.object && name in parent) {
9090
ret["data"] = Json.emptyObject();
9191
ret["data"] = parent[name];
9292
} else {

0 commit comments

Comments
 (0)