You are here

protected function QueryProcessor::serializeDocument in GraphQL 8.3

Parameters

\GraphQL\Language\AST\DocumentNode $document:

Return value

array

1 call to QueryProcessor::serializeDocument()
QueryProcessor::cacheIdentifier in src/GraphQL/Execution/QueryProcessor.php

File

src/GraphQL/Execution/QueryProcessor.php, line 452

Class

QueryProcessor

Namespace

Drupal\graphql\GraphQL\Execution

Code

protected function serializeDocument(DocumentNode $document) {
  return $this
    ->sanitizeRecursive(AST::toArray($document));
}