Skip to content

Commit 9f8da88

Browse files
authored
Merge pull request #220 from marhub/patch-1
Error GraphQL Request must include at least one of those two parameters: "query" or "queryId"
2 parents 6714c56 + 36bb3ca commit 9f8da88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/WebonyxGraphqlMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
7676
}
7777

7878
// Let's json deserialize if this is not already done.
79-
if ($request->getParsedBody() === null) {
79+
if (empty($request->getParsedBody())) {
8080
$content = $request->getBody()->getContents();
8181
$data = json_decode($content, true);
8282

0 commit comments

Comments
 (0)