You are here

public function QueryConnection::__construct in GraphQL 8.4

QueryConnection constructor.

Parameters

\Drupal\Core\Entity\Query\QueryInterface $query:

File

examples/graphql_example/src/Wrappers/QueryConnection.php, line 23

Class

QueryConnection
Helper class that wraps entity queries.

Namespace

Drupal\graphql_examples\Wrappers

Code

public function __construct(QueryInterface $query) {
  $this->query = $query;
}