From d92df27c8abcba711a135f979005dbf66a9f6dbc Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 14 Aug 2019 12:14:25 -0400 Subject: [PATCH] Fix iteration on object paths --- angel_graphql/lib/src/graphql_http.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/angel_graphql/lib/src/graphql_http.dart b/angel_graphql/lib/src/graphql_http.dart index 59f787d2..4607b3f9 100644 --- a/angel_graphql/lib/src/graphql_http.dart +++ b/angel_graphql/lib/src/graphql_http.dart @@ -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) {