Skip to content

Commit

Permalink
rename executeAndCacheValidationRules to validateCacheableRules
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Sep 19, 2024
1 parent 9ba4441 commit b7ee225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GraphQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function executeParsedQueryRaw(
new StartExecution($schema, $query, $variables, $operationName, $context),
);

$errors = $this->executeAndCacheValidationRules($schema, $this->schemaBuilder->schemaHash(), $query, $queryHash);
$errors = $this->validateCacheableRules($schema, $this->schemaBuilder->schemaHash(), $query, $queryHash);
if ($errors !== []) {
return new ExecutionResult(null, $errors);
}
Expand Down Expand Up @@ -386,11 +386,11 @@ protected function parseQuery(string $query): DocumentNode
}

/**
* Execute the validation rules that are cacheable.
* Validate rules that are cacheable. Either by using the cache or by running them.
*
* @return array<Error>
*/
protected function executeAndCacheValidationRules(
protected function validateCacheableRules(
SchemaType $schema,
?string $schemaHash,
DocumentNode $query,
Expand Down

0 comments on commit b7ee225

Please sign in to comment.