Fix iteration on object paths
This commit is contained in:
parent
2bf39a81e1
commit
d92df27c8a
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue