PHP Class Youshido\GraphQL\Execution\Processor

Afficher le fichier Open project: youshido/graphql Class Usage Examples

Protected Properties

Свойство Type Description
$data array
$executionContext Youshido\GraphQL\Execution\Context\ExecutionContext
$maxComplexity integer
$resolveValidator Youshido\GraphQL\Validator\ResolveValidator\ResolveValidatorInterface

Méthodes publiques

Méthode Description
__construct ( AbstractSchema $schema )
getExecutionContext ( ) : ExecutionContext You can access ExecutionContext to check errors and inject dependencies
getMaxComplexity ( ) : integer
getResponseData ( )
processPayload ( $payload, $variables = [], $reducers = [] )
setMaxComplexity ( integer $maxComplexity )

Méthodes protégées

Méthode Description
createResolveInfo ( Youshido\GraphQL\Field\FieldInterface $field, array $astFields )
doResolve ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null )
parseAndCreateRequest ( $payload, $variables = [] )
parseArgumentsValues ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )
resolveComposite ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
resolveField ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null, $fromObject = false )
resolveList ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
resolveObject ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue, $fromUnion = false )
resolveQuery ( Query $query )
resolveScalar ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )

Private Methods

Méthode Description
collectResult ( Youshido\GraphQL\Field\FieldInterface $field, AbstractObjectType $type, $ast, $resolvedValue )
getAlias ( Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )
getVariableReferenceArgumentValue ( VariableReference $variableReference, AbstractType $argumentType, Request $request )
prepareArgumentValue ( $argumentValue, AbstractType $argumentType, Request $request )
prepareAstArguments ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $query, Request $request )

Method Details

__construct() public méthode

public __construct ( AbstractSchema $schema )
$schema Youshido\GraphQL\Schema\AbstractSchema

createResolveInfo() protected méthode

protected createResolveInfo ( Youshido\GraphQL\Field\FieldInterface $field, array $astFields )
$field Youshido\GraphQL\Field\FieldInterface
$astFields array

doResolve() protected méthode

protected doResolve ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

getExecutionContext() public méthode

You can access ExecutionContext to check errors and inject dependencies
public getExecutionContext ( ) : ExecutionContext
Résultat Youshido\GraphQL\Execution\Context\ExecutionContext

getMaxComplexity() public méthode

public getMaxComplexity ( ) : integer
Résultat integer

getResponseData() public méthode

public getResponseData ( )

parseAndCreateRequest() protected méthode

protected parseAndCreateRequest ( $payload, $variables = [] )

parseArgumentsValues() protected méthode

protected parseArgumentsValues ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

processPayload() public méthode

public processPayload ( $payload, $variables = [], $reducers = [] )

resolveComposite() protected méthode

protected resolveComposite ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveField() protected méthode

protected resolveField ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue = null, $fromObject = false )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveList() protected méthode

protected resolveList ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveObject() protected méthode

protected resolveObject ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue, $fromUnion = false )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

resolveQuery() protected méthode

protected resolveQuery ( Query $query )
$query Youshido\GraphQL\Parser\Ast\Query

resolveScalar() protected méthode

protected resolveScalar ( Youshido\GraphQL\Field\FieldInterface $field, Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface $ast, $parentValue )
$field Youshido\GraphQL\Field\FieldInterface
$ast Youshido\GraphQL\Parser\Ast\Interfaces\FieldInterface

setMaxComplexity() public méthode

public setMaxComplexity ( integer $maxComplexity )
$maxComplexity integer

Property Details

$data protected_oe property

protected array $data
Résultat array

$executionContext protected_oe property

protected ExecutionContext,Youshido\GraphQL\Execution\Context $executionContext
Résultat Youshido\GraphQL\Execution\Context\ExecutionContext

$maxComplexity protected_oe property

protected int $maxComplexity
Résultat integer

$resolveValidator protected_oe property

protected ResolveValidatorInterface,Youshido\GraphQL\Validator\ResolveValidator $resolveValidator
Résultat Youshido\GraphQL\Validator\ResolveValidator\ResolveValidatorInterface