public function ConnectionQueryHelperInterface::getLoaderPromise in Open Social 10.0.x
Same name and namespace in other branches
- 10.3.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getLoaderPromise()
- 10.1.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getLoaderPromise()
- 10.2.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 88
Class
- ConnectionQueryHelperInterface
- Provides an interface for a connection query helper.
Namespace
Drupal\social_graphql\GraphQLCode
public function getLoaderPromise(array $result) : SyncPromise;