Fix iteration on object paths

This commit is contained in:
Tobe O 2019-08-14 12:14:25 -04:00
parent 2bf39a81e1
commit d92df27c8a

View file

@ -116,8 +116,8 @@ RequestHandler graphQLHttp(GraphQL graphQL,
var subPaths = (objectPath as String).split('.');
if (subPaths[0] == 'variables') {
Object current = variables;
for (int i = 0; i < subPaths.length; i++) {
var name = subPaths[0];
for (int i = 1; i < subPaths.length; i++) {
var name = subPaths[i];
var parent = subPaths.take(i).join('.');
if (_num.hasMatch(name)) {
if (current is! List) {