You are here

public function ConnectionInterface::setPagination in Open Social 10.3.x

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

Specifies the pagination parameters for this query.

This can only be called before results have been fetched.

Parameters

int|null $first: The limit of N first results (either first XOR last must be set).

string|null $after: The cursor after which to fetch results (when using `$first`).

int|null $last: The limit of N last results (either first XOR last must be set).

string|null $before: The cursor before which to fetch results (when using `$last`).

bool $reverse: Whether the sorting is in reversed order.

Return value

$this This connection instance.

File

modules/custom/social_graphql/src/GraphQL/ConnectionInterface.php, line 31

Class

ConnectionInterface
Provides the interface for connections.

Namespace

Drupal\social_graphql\GraphQL

Code

public function setPagination(?int $first, ?string $after, ?int $last, ?string $before, bool $reverse) : self;