Skip to content

Commit

Permalink
Make GraphQL::loadPersistedQuery public
Browse files Browse the repository at this point in the history
  • Loading branch information
jaulz committed Jul 3, 2024
1 parent 29b99f7 commit 76d9a4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/GraphQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,12 @@ public function toSerializableArray(ExecutionResult $result): array
return $result->toArray($this->debugFlag());
}

/** Loads persisted query from the query cache. */
protected function loadPersistedQuery(string $sha256hash): DocumentNode
/**
* Loads persisted query from the query cache.
*
* @api
*/
public function loadPersistedQuery(string $sha256hash): DocumentNode
{
$lighthouseConfig = $this->configRepository->get('lighthouse');
$cacheConfig = $lighthouseConfig['query_cache'] ?? null;
Expand Down

0 comments on commit 76d9a4a

Please sign in to comment.