protected function QueryProcessor::executeUncachableOperation in GraphQL 8.3
Parameters
\GraphQL\Executor\Promise\PromiseAdapter $adapter:
\GraphQL\Server\ServerConfig $config:
\GraphQL\Server\OperationParams $params:
\GraphQL\Language\AST\DocumentNode $document:
bool $validate:
Return value
\GraphQL\Executor\Promise\Promise
1 call to QueryProcessor::executeUncachableOperation()
- QueryProcessor::executeOperation in src/
GraphQL/ Execution/ QueryProcessor.php
File
- src/
GraphQL/ Execution/ QueryProcessor.php, line 266
Class
Namespace
Drupal\graphql\GraphQL\ExecutionCode
protected function executeUncachableOperation(PromiseAdapter $adapter, ServerConfig $config, OperationParams $params, DocumentNode $document, $validate = TRUE) {
$result = $this
->doExecuteOperation($adapter, $config, $params, $document, $validate);
return $result
->then(function (QueryResult $result) {
// Mark the query result as uncacheable.
$result
->mergeCacheMaxAge(0);
return $result;
});
}