PHP Class Youshido\GraphQL\Relay\Field\NodeField

Inheritance: extends Youshido\GraphQL\Field\AbstractField
Show file Open project: youshido/graphql Class Usage Examples

Protected Properties

Property Type Description
$fetcher Youshido\GraphQL\Relay\Fetcher\FetcherInterface
$type Youshido\GraphQL\Relay\NodeInterfaceType

Public Methods

Method Description
__construct ( Youshido\GraphQL\Relay\Fetcher\FetcherInterface $fetcher )
build ( FieldConfig $config )
getDescription ( )
getName ( )
getType ( )
resolve ( $value, array $args, ResolveInfo $info )

Method Details

__construct() public method

public __construct ( Youshido\GraphQL\Relay\Fetcher\FetcherInterface $fetcher )
$fetcher Youshido\GraphQL\Relay\Fetcher\FetcherInterface

build() public method

public build ( FieldConfig $config )
$config Youshido\GraphQL\Config\Field\FieldConfig

getDescription() public method

public getDescription ( )

getName() public method

public getName ( )

getType() public method

public getType ( )

resolve() public method

public resolve ( $value, array $args, ResolveInfo $info )
$args array
$info Youshido\GraphQL\Execution\ResolveInfo

Property Details

$fetcher protected property

protected FetcherInterface,Youshido\GraphQL\Relay\Fetcher $fetcher
return Youshido\GraphQL\Relay\Fetcher\FetcherInterface

$type protected property

protected NodeInterfaceType,Youshido\GraphQL\Relay $type
return Youshido\GraphQL\Relay\NodeInterfaceType