You are here

TypeResolverInterface.php in GraphQL 8.2

Same filename and directory in other branches
  1. 8 src/TypeResolverInterface.php

Namespace

Drupal\graphql

File

src/TypeResolverInterface.php
View source
<?php

namespace Drupal\graphql;


/**
 * Provides a common interface for type resolvers.
 */
interface TypeResolverInterface {

  /**
   * @param mixed $type
   *
   * @return \Fubhy\GraphQL\Type\Definition\Types\TypeInterface|null
   */
  public function resolveRecursive($type);

  /**
   * @param mixed $type
   *
   * @return bool
   */
  public function applies($type);

}

Interfaces

Namesort descending Description
TypeResolverInterface Provides a common interface for type resolvers.