Skip to content

Latest commit

 

History

History
622 lines (243 loc) · 7.93 KB

SchemaExtender.md

File metadata and controls

622 lines (243 loc) · 7.93 KB

SchemaExtender

  • Full name: \GraphQL\Utils\SchemaExtender

Constants

Constant Visibility Type Value
SCHEMA_EXTENSION public 'SchemaExtension'

Properties

extendTypeCache

protected static \GraphQL\Type\Definition\Type[] $extendTypeCache
  • This property is static.

typeExtensionsMap

protected static array $typeExtensionsMap
  • This property is static.

astBuilder

protected static \GraphQL\Utils\ASTDefinitionBuilder $astBuilder
  • This property is static.

Methods

getExtensionASTNodes

protected static getExtensionASTNodes(\GraphQL\Type\Definition\NamedType $type): \GraphQL\Language\AST\TypeExtensionNode[]|null
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\NamedType

checkExtensionNode

protected static checkExtensionNode(\GraphQL\Type\Definition\Type $type, \GraphQL\Language\AST\Node $node): void
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\Type
$node \GraphQL\Language\AST\Node

extendScalarType

protected static extendScalarType(\GraphQL\Type\Definition\ScalarType $type): \GraphQL\Type\Definition\CustomScalarType
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\ScalarType

extendUnionType

protected static extendUnionType(\GraphQL\Type\Definition\UnionType $type): \GraphQL\Type\Definition\UnionType
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\UnionType

extendEnumType

protected static extendEnumType(\GraphQL\Type\Definition\EnumType $type): \GraphQL\Type\Definition\EnumType
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\EnumType

extendInputObjectType

protected static extendInputObjectType(\GraphQL\Type\Definition\InputObjectType $type): \GraphQL\Type\Definition\InputObjectType
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\InputObjectType

extendInputFieldMap

protected static extendInputFieldMap(\GraphQL\Type\Definition\InputObjectType $type): array
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\InputObjectType

extendValueMap

protected static extendValueMap(\GraphQL\Type\Definition\EnumType $type): array
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\EnumType

extendPossibleTypes

protected static extendPossibleTypes(\GraphQL\Type\Definition\UnionType $type): \GraphQL\Type\Definition\ObjectType[]
  • This method is static.

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>
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\ObjectType|\GraphQL\Type\Definition\InterfaceType

extendType

protected static extendType(mixed $typeDef): mixed
  • This method is static.

Parameters:

Parameter Type Description
$typeDef mixed

extendArgs

protected static extendArgs(\GraphQL\Type\Definition\FieldArgument[] $args): array
  • This method is static.

Parameters:

Parameter Type Description
$args \GraphQL\Type\Definition\FieldArgument[]

extendFieldMap

protected static extendFieldMap(\GraphQL\Type\Definition\InterfaceType|\GraphQL\Type\Definition\ObjectType $type): array
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\InterfaceType|\GraphQL\Type\Definition\ObjectType

extendObjectType

protected static extendObjectType(\GraphQL\Type\Definition\ObjectType $type): \GraphQL\Type\Definition\ObjectType
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\ObjectType

extendInterfaceType

protected static extendInterfaceType(\GraphQL\Type\Definition\InterfaceType $type): \GraphQL\Type\Definition\InterfaceType
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\InterfaceType

isSpecifiedScalarType

protected static isSpecifiedScalarType(\GraphQL\Type\Definition\Type $type): bool
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\Type

extendNamedType

protected static extendNamedType(\GraphQL\Type\Definition\Type $type): mixed
  • This method is static.

Parameters:

Parameter Type Description
$type \GraphQL\Type\Definition\Type

extendMaybeNamedType

protected static extendMaybeNamedType(?\GraphQL\Type\Definition\NamedType $type = null): mixed|null
  • This method is static.

Parameters:

Parameter Type Description
$type ?\GraphQL\Type\Definition\NamedType

getMergedDirectives

protected static getMergedDirectives(\GraphQL\Type\Schema $schema, \GraphQL\Language\AST\DirectiveDefinitionNode[] $directiveDefinitions): \GraphQL\Type\Definition\Directive[]
  • This method is static.

Parameters:

Parameter Type Description
$schema \GraphQL\Type\Schema
$directiveDefinitions \GraphQL\Language\AST\DirectiveDefinitionNode[]

extendDirective

protected static extendDirective(\GraphQL\Type\Definition\Directive $directive): \GraphQL\Type\Definition\Directive
  • This method is static.

Parameters:

Parameter Type Description
$directive \GraphQL\Type\Definition\Directive

extend

public static extend(\GraphQL\Type\Schema $schema, \GraphQL\Language\AST\DocumentNode $documentAST, array<string,bool> $options = [], ?callable $typeConfigDecorator = null): \GraphQL\Type\Schema
  • This method is static.

Parameters:

Parameter Type Description
$schema \GraphQL\Type\Schema
$documentAST \GraphQL\Language\AST\DocumentNode
$options array<string,bool>
$typeConfigDecorator ?callable