mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
Fix linting issue and typos.
(cherry picked from commit c33e41f2bf44b20b3d79b00d335c3a5ea5975116)
This commit is contained in:
parent
1e778d259e
commit
9ada606919
@ -96,8 +96,8 @@ class OperationParams
|
||||
$instance->readOnly = (bool) $readonly;
|
||||
|
||||
// Apollo server/client compatibility: look for the queryid in extensions
|
||||
if (isset($params['extensions']['persistedQuery']['sha256Hash']) && empty($instance->query) && empty($instance->queryid)) {
|
||||
$instance->queryId = $params['extensions']['persistedQuery']['sha256Hash'];
|
||||
if (isset($params['extensions']['persistedQuery']['sha256Hash']) && empty($instance->query) && empty($instance->queryId)) {
|
||||
$instance->queryId = $params['extensions']['persistedQuery']['sha256Hash'];
|
||||
}
|
||||
|
||||
return $instance;
|
||||
|
@ -335,12 +335,8 @@ class RequestParsingTest extends TestCase
|
||||
|
||||
public function testParsesApolloPersistedQueryJSONRequest() : void
|
||||
{
|
||||
$queryId = 'my-query-id';
|
||||
$extensions = [
|
||||
'persistedQuery' => [
|
||||
'sha256Hash' => $queryId,
|
||||
],
|
||||
];
|
||||
$queryId = 'my-query-id';
|
||||
$extensions = ['persistedQuery' => ['sha256Hash' => $queryId]];
|
||||
$variables = ['test' => 1, 'test2' => 2];
|
||||
$operation = 'op';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user