PHP 클래스 GraphQL\Validator\ValidationContext

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

공개 메소드들

메소드 설명
__construct ( Schema $schema, DocumentNode $ast, TypeInfo $typeInfo ) ValidationContext constructor.
getArgument ( )
getDirective ( )
getDocument ( ) : DocumentNode
getErrors ( ) : Error[]
getFieldDef ( ) : FieldDefinition
getFragment ( $name ) : FragmentDefinitionNode | null
getFragmentSpreads ( GraphQL\Language\AST\HasSelectionSet $node ) : FragmentSpreadNode[]
getInputType ( ) : GraphQL\Type\Definition\InputType
getParentType ( ) : GraphQL\Type\Definition\CompositeType
getRecursiveVariableUsages ( OperationDefinitionNode $operation ) : array
getRecursivelyReferencedFragments ( OperationDefinitionNode $operation ) : FragmentDefinitionNode[]
getSchema ( ) : Schema
getType ( ) : Type Returns OutputType
getVariableUsages ( GraphQL\Language\AST\HasSelectionSet $node ) : array
reportError ( Error $error )

메소드 상세

__construct() 공개 메소드

ValidationContext constructor.
public __construct ( Schema $schema, DocumentNode $ast, TypeInfo $typeInfo )
$schema GraphQL\Schema
$ast GraphQL\Language\AST\DocumentNode
$typeInfo GraphQL\Utils\TypeInfo

getArgument() 공개 메소드

public getArgument ( )

getDirective() 공개 메소드

public getDirective ( )

getDocument() 공개 메소드

public getDocument ( ) : DocumentNode
리턴 GraphQL\Language\AST\DocumentNode

getErrors() 공개 메소드

public getErrors ( ) : Error[]
리턴 GraphQL\Error\Error[]

getFieldDef() 공개 메소드

public getFieldDef ( ) : FieldDefinition
리턴 GraphQL\Type\Definition\FieldDefinition

getFragment() 공개 메소드

public getFragment ( $name ) : FragmentDefinitionNode | null
$name
리턴 GraphQL\Language\AST\FragmentDefinitionNode | null

getFragmentSpreads() 공개 메소드

public getFragmentSpreads ( GraphQL\Language\AST\HasSelectionSet $node ) : FragmentSpreadNode[]
$node GraphQL\Language\AST\HasSelectionSet
리턴 GraphQL\Language\AST\FragmentSpreadNode[]

getInputType() 공개 메소드

public getInputType ( ) : GraphQL\Type\Definition\InputType
리턴 GraphQL\Type\Definition\InputType

getParentType() 공개 메소드

public getParentType ( ) : GraphQL\Type\Definition\CompositeType
리턴 GraphQL\Type\Definition\CompositeType

getRecursiveVariableUsages() 공개 메소드

public getRecursiveVariableUsages ( OperationDefinitionNode $operation ) : array
$operation GraphQL\Language\AST\OperationDefinitionNode
리턴 array List of ['node' => VariableNode, 'type' => ?InputObjectType]

getRecursivelyReferencedFragments() 공개 메소드

public getRecursivelyReferencedFragments ( OperationDefinitionNode $operation ) : FragmentDefinitionNode[]
$operation GraphQL\Language\AST\OperationDefinitionNode
리턴 GraphQL\Language\AST\FragmentDefinitionNode[]

getSchema() 공개 메소드

public getSchema ( ) : Schema
리턴 GraphQL\Schema

getType() 공개 메소드

Returns OutputType
public getType ( ) : Type
리턴 GraphQL\Type\Definition\Type

getVariableUsages() 공개 메소드

public getVariableUsages ( GraphQL\Language\AST\HasSelectionSet $node ) : array
$node GraphQL\Language\AST\HasSelectionSet
리턴 array List of ['node' => VariableNode, 'type' => ?InputObjectType]

reportError() 공개 메소드

public reportError ( Error $error )
$error GraphQL\Error\Error