mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
Fix linting issue and typos.
This commit is contained in:
parent
63b4e3f0a4
commit
c33e41f2bf
@ -96,7 +96,7 @@ class OperationParams
|
|||||||
$instance->readOnly = (bool) $readonly;
|
$instance->readOnly = (bool) $readonly;
|
||||||
|
|
||||||
// Apollo server/client compatibility: look for the queryid in extensions
|
// Apollo server/client compatibility: look for the queryid in extensions
|
||||||
if (isset($params['extensions']['persistedQuery']['sha256Hash']) && empty($instance->query) && empty($instance->queryid)) {
|
if (isset($params['extensions']['persistedQuery']['sha256Hash']) && empty($instance->query) && empty($instance->queryId)) {
|
||||||
$instance->queryId = $params['extensions']['persistedQuery']['sha256Hash'];
|
$instance->queryId = $params['extensions']['persistedQuery']['sha256Hash'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -336,11 +336,7 @@ class RequestParsingTest extends TestCase
|
|||||||
public function testParsesApolloPersistedQueryJSONRequest() : void
|
public function testParsesApolloPersistedQueryJSONRequest() : void
|
||||||
{
|
{
|
||||||
$queryId = 'my-query-id';
|
$queryId = 'my-query-id';
|
||||||
$extensions = [
|
$extensions = ['persistedQuery' => ['sha256Hash' => $queryId]];
|
||||||
'persistedQuery' => [
|
|
||||||
'sha256Hash' => $queryId,
|
|
||||||
],
|
|
||||||
];
|
|
||||||
$variables = ['test' => 1, 'test2' => 2];
|
$variables = ['test' => 1, 'test2' => 2];
|
||||||
$operation = 'op';
|
$operation = 'op';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user