Full name: \GraphQL\Utils\SchemaExtender
Constant
Visibility
Type
Value
SCHEMA_EXTENSION
public
'SchemaExtension'
protected static \GraphQL \Type \Definition \Type[] $ extendTypeCache
protected static array $ typeExtensionsMap
protected static \GraphQL \Utils \ASTDefinitionBuilder $ astBuilder
protected static getExtensionASTNodes(\GraphQL \Type \Definition \NamedType $ type): \GraphQL \Language \AST \TypeExtensionNode[]|null
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\NamedType
protected static checkExtensionNode(\GraphQL \Type \Definition \Type $ type, \GraphQL \Language \AST \Node $ node): void
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\Type
$node
\GraphQL\Language\AST\Node
protected static extendScalarType(\GraphQL \Type \Definition \ScalarType $ type): \GraphQL \Type \Definition \CustomScalarType
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\ScalarType
protected static extendUnionType(\GraphQL \Type \Definition \UnionType $ type): \GraphQL \Type \Definition \UnionType
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\UnionType
protected static extendEnumType(\GraphQL \Type \Definition \EnumType $ type): \GraphQL \Type \Definition \EnumType
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\EnumType
protected static extendInputObjectType(\GraphQL \Type \Definition \InputObjectType $ type): \GraphQL \Type \Definition \InputObjectType
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\InputObjectType
protected static extendInputFieldMap(\GraphQL \Type \Definition \InputObjectType $ type): array
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\InputObjectType
protected static extendValueMap(\GraphQL \Type \Definition \EnumType $ type): array
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\EnumType
protected static extendPossibleTypes(\GraphQL \Type \Definition \UnionType $ type): \GraphQL \Type \Definition \ObjectType[]
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\UnionType
extendImplementedInterfaces
protected static extendImplementedInterfaces(\GraphQL \Type \Definition \ObjectType|\GraphQL \Type \Definition \InterfaceType $ type): array<int,\GraphQL \Type \Definition \InterfaceType>
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\ObjectType|\GraphQL\Type\Definition\InterfaceType
protected static extendType (mixed $ typeDef ): mixed
Parameters:
Parameter
Type
Description
$typeDef
mixed
protected static extendArgs(\GraphQL \Type \Definition \FieldArgument[] $ args ): array
Parameters:
Parameter
Type
Description
$args
\GraphQL\Type\Definition\FieldArgument[]
protected static extendFieldMap(\GraphQL \Type \Definition \InterfaceType|\GraphQL \Type \Definition \ObjectType $ type): array
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\InterfaceType|\GraphQL\Type\Definition\ObjectType
protected static extendObjectType(\GraphQL \Type \Definition \ObjectType $ type): \GraphQL \Type \Definition \ObjectType
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\ObjectType
protected static extendInterfaceType(\GraphQL \Type \Definition \InterfaceType $ type): \GraphQL \Type \Definition \InterfaceType
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\InterfaceType
protected static isSpecifiedScalarType(\GraphQL \Type \Definition \Type $ type): bool
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\Type
protected static extendNamedType(\GraphQL \Type \Definition \Type $ type): mixed
Parameters:
Parameter
Type
Description
$type
\GraphQL\Type\Definition\Type
protected static extendMaybeNamedType (?\GraphQL \Type \Definition \NamedType $ type = null ): mixed|null
Parameters:
Parameter
Type
Description
$type
?\GraphQL\Type\Definition\NamedType
protected static getMergedDirectives(\GraphQL \Type \Schema $ schema, \GraphQL \Language \AST \DirectiveDefinitionNode[] $ directiveDefinitions ): \GraphQL \Type \Definition \Directive[]
Parameters:
Parameter
Type
Description
$schema
\GraphQL\Type\Schema
$directiveDefinitions
\GraphQL\Language\AST\DirectiveDefinitionNode[]
protected static extendDirective(\GraphQL \Type \Definition \Directive $ directive): \GraphQL \Type \Definition \Directive
Parameters:
Parameter
Type
Description
$directive
\GraphQL\Type\Definition\Directive
public static extend(\GraphQL \Type \Schema $ schema, \GraphQL \Language \AST \DocumentNode $ documentAST, array<string,bool> $ options = [], ?callable $ typeConfigDecorator = null): \GraphQL \Type \Schema
Parameters:
Parameter
Type
Description
$schema
\GraphQL\Type\Schema
$documentAST
\GraphQL\Language\AST\DocumentNode
$options
array<string,bool>
$typeConfigDecorator
?callable