PHP 클래스 GraphQL\Type\Definition\ResolveInfo

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

공개 프로퍼티들

프로퍼티 타입 설명
$fieldASTs GraphQL\Language\AST\FieldNode[]
$fieldName string
$fieldNodes GraphQL\Language\AST\FieldNode[]
$fragments GraphQL\Language\AST\FragmentDefinitionNode[]
$operation GraphQL\Language\AST\OperationDefinitionNode
$parentType Type | CompositeType
$path array
$returnType OutputType
$rootValue mixed
$schema GraphQL\Schema
$variableValues

공개 메소드들

메소드 설명
__construct ( array $values )
__get ( $name )
getFieldSelection ( integer $depth ) : array Helper method that returns names of all fields selected in query for $this->fieldName up to $depth levels

비공개 메소드들

메소드 설명
foldSelectionSet ( SelectionSetNode $selectionSet, $descend )

메소드 상세

__construct() 공개 메소드

public __construct ( array $values )
$values array

__get() 공개 메소드

public __get ( $name )

getFieldSelection() 공개 메소드

query AppHomeRoute{viewer{id,..._0c28183ce}} fragment _0c28183ce on Viewer{id,profile{firstName,id,locations{id}}} Example: query MyQuery{ { root { id, nested { nested1 nested2 { nested3 } } } } Given this ResolveInfo instance is a part of "root" field resolution, and $depth === 1, method will return: [ 'id' => true, 'nested' => [ nested1 => true, nested2 => true ] ]
public getFieldSelection ( integer $depth ) : array
$depth integer How many levels to include in output
리턴 array

프로퍼티 상세

$fieldASTs 공개적으로 프로퍼티

사용 중단: as of 8.0 (Renamed to $fieldNodes)
public FieldNode[],GraphQL\Language\AST $fieldASTs
리턴 GraphQL\Language\AST\FieldNode[]

$fieldName 공개적으로 프로퍼티

public string $fieldName
리턴 string

$fieldNodes 공개적으로 프로퍼티

public FieldNode[],GraphQL\Language\AST $fieldNodes
리턴 GraphQL\Language\AST\FieldNode[]

$fragments 공개적으로 프로퍼티

public FragmentDefinitionNode[],GraphQL\Language\AST $fragments
리턴 GraphQL\Language\AST\FragmentDefinitionNode[]

$operation 공개적으로 프로퍼티

public OperationDefinitionNode,GraphQL\Language\AST $operation
리턴 GraphQL\Language\AST\OperationDefinitionNode

$parentType 공개적으로 프로퍼티

public Type,GraphQL\Type\Definition|CompositeType $parentType
리턴 Type | CompositeType

$path 공개적으로 프로퍼티

public array $path
리턴 array

$returnType 공개적으로 프로퍼티

public OutputType $returnType
리턴 OutputType

$rootValue 공개적으로 프로퍼티

public mixed $rootValue
리턴 mixed

$schema 공개적으로 프로퍼티

public Schema,GraphQL $schema
리턴 GraphQL\Schema

$variableValues 공개적으로 프로퍼티

public $variableValues