PHP 클래스 Youshido\GraphQL\Execution\Processor

파일 보기 프로젝트 열기: youshido/graphql 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$data array
$executionContext Youshido\GraphQL\Execution\Context\ExecutionContext
$maxComplexity integer
$resolveValidator Youshido\GraphQL\Validator\ResolveValidator\ResolveValidatorInterface

공개 메소드들

메소드 설명
__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 )

보호된 메소드들

메소드 설명
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 )

비공개 메소드들

메소드 설명
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 )

메소드 상세

__construct() 공개 메소드

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

createResolveInfo() 보호된 메소드

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

doResolve() 보호된 메소드

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() 공개 메소드

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

getMaxComplexity() 공개 메소드

public getMaxComplexity ( ) : integer
리턴 integer

getResponseData() 공개 메소드

public getResponseData ( )

parseAndCreateRequest() 보호된 메소드

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

parseArgumentsValues() 보호된 메소드

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 processPayload ( $payload, $variables = [], $reducers = [] )

resolveComposite() 보호된 메소드

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 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 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 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 resolveQuery ( Query $query )
$query Youshido\GraphQL\Parser\Ast\Query

resolveScalar() 보호된 메소드

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 setMaxComplexity ( integer $maxComplexity )
$maxComplexity integer

프로퍼티 상세

$data 보호되어 있는 프로퍼티

protected array $data
리턴 array

$executionContext 보호되어 있는 프로퍼티

protected ExecutionContext,Youshido\GraphQL\Execution\Context $executionContext
리턴 Youshido\GraphQL\Execution\Context\ExecutionContext

$maxComplexity 보호되어 있는 프로퍼티

protected int $maxComplexity
리턴 integer

$resolveValidator 보호되어 있는 프로퍼티

protected ResolveValidatorInterface,Youshido\GraphQL\Validator\ResolveValidator $resolveValidator
리턴 Youshido\GraphQL\Validator\ResolveValidator\ResolveValidatorInterface