You are here

public function ResolverBuilder::cond in GraphQL 8.4

Add condition branches to resolve.

Parameters

array $branches:

Return value

\Drupal\graphql\GraphQL\Resolver\Condition

File

src/GraphQL/ResolverBuilder.php, line 104

Class

ResolverBuilder
Wires and maps different resolvers together to build the GraphQL tree.

Namespace

Drupal\graphql\GraphQL

Code

public function cond(array $branches) {
  return new Condition($branches);
}