Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
manymotes committed Jul 20, 2022
1 parent 2af28cb commit fb30c4b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class GraphQLMultiQueryRequest(

for (request in this.requests) {
val query = request.query
//Graphl does not support multiple subscriptions in one request http://spec.graphql.org/June2018/#sec-Single-root-field
//Graphql only supports multiple mutations or multiple queries. Not a combination of the two.
//Graphql does not support multiple subscriptions in one request http://spec.graphql.org/June2018/#sec-Single-root-field
if (!query.getOperationType().equals(queryType) || queryType == OperationDefinition.Operation.SUBSCRIPTION.name) {
throw AssertionError("Request has to have exclusively queries or mutations in a multi operation request")
}
Expand Down

0 comments on commit fb30c4b

Please sign in to comment.