From 4a0caba99813611c8dcfa3a5e10c8bcd5093e79d Mon Sep 17 00:00:00 2001 From: Jacob Thomason Date: Thu, 7 Nov 2019 17:08:28 -0500 Subject: [PATCH] Fixed incorrect comparison operator GraphQL won't parse the request body payload for GraphQL JSON. Additionally, it won't fetch the schema as is typically handled through common GraphQL clients. --- src/Http/WebonyxGraphqlMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/WebonyxGraphqlMiddleware.php b/src/Http/WebonyxGraphqlMiddleware.php index 2994f4a402..7c6222ba9d 100644 --- a/src/Http/WebonyxGraphqlMiddleware.php +++ b/src/Http/WebonyxGraphqlMiddleware.php @@ -76,7 +76,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface } // Let's json deserialize if this is not already done. - if ($request->getParsedBody() === null) { + if ($request->getParsedBody() !== null) { $content = $request->getBody()->getContents(); $data = json_decode($content, true);