You are here

public function ConnectionQueryHelperInterface::getLoaderPromise in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getLoaderPromise()
  2. 10.0.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getLoaderPromise()
  3. 10.1.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getLoaderPromise()

Asynchronously turn the entity query result into edges.

This can be used to process the results from the entity query and load them using something like the GraphQL Entity Buffer. Transformative work should be moved into the promise as much as possible.

Parameters

array $result: The result of the entity query as started in getQuery.

Return value

\GraphQL\Executor\Promise\Adapter\SyncPromise A promise that resolves into the edges for this connection.

File

modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php, line 104

Class

ConnectionQueryHelperInterface
Provides an interface for a connection query helper.

Namespace

Drupal\social_graphql\GraphQL

Code

public function getLoaderPromise(array $result) : SyncPromise;