Skip to content

Commit 488ce8c

Browse files
authored
Merge pull request #135 from wravery/master
Fix #134
2 parents cde90d7 + e53706e commit 488ce8c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/GraphQLService.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,19 +1830,13 @@ std::future<response::Value> Request::resolve(std::launch launch,
18301830
}
18311831

18321832
const bool isMutation = (operationDefinition.first == strMutation);
1833-
1834-
// http://spec.graphql.org/June2018/#sec-Normal-and-Serial-Execution
1835-
if (isMutation)
1836-
{
1837-
// Force mutations to perform serial execution
1838-
launch = std::launch::deferred;
1839-
}
1840-
18411833
const auto resolverContext =
18421834
isMutation ? ResolverContext::Mutation : ResolverContext::Query;
1835+
// http://spec.graphql.org/June2018/#sec-Normal-and-Serial-Execution
1836+
const auto operationLaunch = isMutation ? std::launch::deferred : launch;
18431837

18441838
OperationDefinitionVisitor operationVisitor(resolverContext,
1845-
launch,
1839+
operationLaunch,
18461840
state,
18471841
_operations,
18481842
std::move(variables),

0 commit comments

Comments
 (0)