@@ -123,7 +123,7 @@ TEST_F(TodayServiceCase, QueryEverything)
123123 }
124124 })" _graphql;
125125 const rapidjson::Document variables (rapidjson::Type::kObjectType );
126- const auto result = _service->resolve (*ast, " Everything" , variables.GetObject ());
126+ const auto result = _service->resolve (*ast-> root , " Everything" , variables.GetObject ());
127127 EXPECT_EQ (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
128128 EXPECT_EQ (size_t (1 ), _getTasksCount) << " today service lazy loads the tasks and caches the result" ;
129129 EXPECT_EQ (size_t (1 ), _getUnreadCountsCount) << " today service lazy loads the unreadCounts and caches the result" ;
@@ -197,7 +197,7 @@ TEST_F(TodayServiceCase, QueryAppointments)
197197 }
198198 })" _graphql;
199199 const rapidjson::Document variables (rapidjson::Type::kObjectType );
200- const auto result = _service->resolve (*ast, " " , variables.GetObject ());
200+ const auto result = _service->resolve (*ast-> root , " " , variables.GetObject ());
201201 EXPECT_EQ (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
202202 EXPECT_GE (size_t (1 ), _getTasksCount) << " today service lazy loads the tasks and caches the result" ;
203203 EXPECT_GE (size_t (1 ), _getUnreadCountsCount) << " today service lazy loads the unreadCounts and caches the result" ;
@@ -252,7 +252,7 @@ TEST_F(TodayServiceCase, QueryTasks)
252252 }
253253 })gql" _graphql;
254254 const rapidjson::Document variables (rapidjson::Type::kObjectType );
255- const auto result = _service->resolve (*ast, " " , variables.GetObject ());
255+ const auto result = _service->resolve (*ast-> root , " " , variables.GetObject ());
256256 EXPECT_GE (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
257257 EXPECT_EQ (size_t (1 ), _getTasksCount) << " today service lazy loads the tasks and caches the result" ;
258258 EXPECT_GE (size_t (1 ), _getUnreadCountsCount) << " today service lazy loads the unreadCounts and caches the result" ;
@@ -306,7 +306,7 @@ TEST_F(TodayServiceCase, QueryUnreadCounts)
306306 }
307307 })" _graphql;
308308 const rapidjson::Document variables (rapidjson::Type::kObjectType );
309- const auto result = _service->resolve (*ast, " " , variables.GetObject ());
309+ const auto result = _service->resolve (*ast-> root , " " , variables.GetObject ());
310310 EXPECT_GE (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
311311 EXPECT_GE (size_t (1 ), _getTasksCount) << " today service lazy loads the tasks and caches the result" ;
312312 EXPECT_EQ (size_t (1 ), _getUnreadCountsCount) << " today service lazy loads the unreadCounts and caches the result" ;
@@ -359,7 +359,7 @@ TEST_F(TodayServiceCase, MutateCompleteTask)
359359 }
360360 })" _graphql;
361361 const rapidjson::Document variables (rapidjson::Type::kObjectType );
362- const auto result = _service->resolve (*ast, " " , variables.GetObject ());
362+ const auto result = _service->resolve (*ast-> root , " " , variables.GetObject ());
363363
364364 try
365365 {
@@ -434,7 +434,7 @@ TEST_F(TodayServiceCase, Introspection)
434434 }
435435 })" _graphql;
436436 const rapidjson::Document variables (rapidjson::Type::kObjectType );
437- const auto result = _service->resolve (*ast, " " , variables.GetObject ());
437+ const auto result = _service->resolve (*ast-> root , " " , variables.GetObject ());
438438
439439 try
440440 {
0 commit comments