Skip to content

Commit f4ba944

Browse files
committed
Remove outdated workaround for operationName and operation
This should not be needed since webonyx/graphql-php#256 This is a breaking change only if you rely on the existing of `operation` instead of `operationName` in subsequent middleware. It is not breaking if you only use `GraphQL\Server\StandardServer`. Fixes #7
1 parent 3162063 commit f4ba944

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/UploadMiddleware.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ private function parseUploadedFiles(ServerRequestInterface $request): ServerRequ
5656

5757
$map = json_decode($bodyParams['map'], true);
5858
$result = json_decode($bodyParams['operations'], true);
59-
if (isset($result['operationName'])) {
60-
$result['operation'] = $result['operationName'];
61-
unset($result['operationName']);
62-
}
6359

6460
foreach ($map as $fileKey => $locations) {
6561
foreach ($locations as $location) {

0 commit comments

Comments
 (0)