Skip to content

Commit 896df98

Browse files
committed
Fixes #789 - pass the full query to the executor
Currently, the operationName is not passed to the executor. By passing the full query, both the id and the operationName will be passed.
1 parent fea0e7e commit 896df98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/GraphController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private function processBatchQuery(Request $request, $schemaName = null)
135135

136136
foreach ($queries as $query) {
137137
$payload = $this->requestExecutor
138-
->execute($schemaName, ['query' => $query['query'], 'variables' => $query['variables']])
138+
->execute($schemaName, $query)
139139
->toArray();
140140
if (!$this->useApolloBatchingMethod) {
141141
$payload = ['id' => $query['id'], 'payload' => $payload];

0 commit comments

Comments
 (0)