You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Controller/GraphqliteController.php
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -117,11 +117,7 @@ private function handlePsr7Request(ServerRequestInterface $request): JsonRespons
117
117
privatefunctiondecideHttpStatusCode(ExecutionResult$result): int
118
118
{
119
119
// If the data entry in the response has any value other than null (when the operation has successfully executed without error) then the response should use the 200 (OK) status code.
120
-
if ($result->data !== null) {
121
-
return200;
122
-
}
123
-
124
-
if (empty($result->errors)) {
120
+
if ($result->data !== null || empty($result->errors)) {
0 commit comments