Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/GraphQLService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,9 +934,12 @@ SelectionVisitor::SelectionVisitor(const SelectionSetParams& selectionSetParams,
, _variables(variables)
, _typeNames(typeNames)
, _resolvers(resolvers)
, _fragmentDefinitionDirectives { selectionSetParams.fragmentDefinitionDirectives }
, _fragmentSpreadDirectives { selectionSetParams.fragmentSpreadDirectives }
, _inlineFragmentDirectives { selectionSetParams.inlineFragmentDirectives }
, _fragmentDefinitionDirectives { std::make_shared<FragmentDefinitionDirectiveStack>(
*selectionSetParams.fragmentDefinitionDirectives) }
, _fragmentSpreadDirectives { std::make_shared<FragmentSpreadDirectiveStack>(
*selectionSetParams.fragmentSpreadDirectives) }
, _inlineFragmentDirectives { std::make_shared<FragmentSpreadDirectiveStack>(
*selectionSetParams.inlineFragmentDirectives) }
{
static const Directives s_emptyFragmentDefinitionDirectives;

Expand Down
13 changes: 13 additions & 0 deletions test/CoroutineTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ TEST_F(CoroutineCase, QueryEverythingThreaded)
auto query = R"(
query Everything {
appointments {
pageInfo {
...PageInfoFields
}
edges {
node {
id
Expand All @@ -298,6 +301,9 @@ TEST_F(CoroutineCase, QueryEverythingThreaded)
}
}
tasks {
pageInfo {
...PageInfoFields
}
edges {
node {
id
Expand All @@ -308,6 +314,9 @@ TEST_F(CoroutineCase, QueryEverythingThreaded)
}
}
unreadCounts {
pageInfo {
...PageInfoFields
}
edges {
node {
id
Expand All @@ -317,6 +326,10 @@ TEST_F(CoroutineCase, QueryEverythingThreaded)
}
}
}
}
fragment PageInfoFields on PageInfo {
hasNextPage
hasPreviousPage
})"_graphql;
response::Value variables(response::Type::Map);
auto state = std::make_shared<today::RequestState>(3);
Expand Down
Loading