Skip to content

Latest commit

 

History

History
264 lines (99 loc) · 3.06 KB

PossibleFragmentSpreads.md

File metadata and controls

264 lines (99 loc) · 3.06 KB

PossibleFragmentSpreads

Methods

getVisitor

Returns structure suitable for GraphQL\Language\Visitor

public getVisitor(\GraphQL\Validator\ValidationContext $context): array

Parameters:

Parameter Type Description
$context \GraphQL\Validator\ValidationContext

doTypesOverlap

private doTypesOverlap(\GraphQL\Type\Schema $schema, \GraphQL\Type\Definition\CompositeType $fragType, \GraphQL\Type\Definition\CompositeType $parentType): mixed

Parameters:

Parameter Type Description
$schema \GraphQL\Type\Schema
$fragType \GraphQL\Type\Definition\CompositeType
$parentType \GraphQL\Type\Definition\CompositeType

typeIncompatibleAnonSpreadMessage

public static typeIncompatibleAnonSpreadMessage(mixed $parentType, mixed $fragType): mixed
  • This method is static.

Parameters:

Parameter Type Description
$parentType mixed
$fragType mixed

getFragmentType

private getFragmentType(\GraphQL\Validator\ValidationContext $context, mixed $name): mixed

Parameters:

Parameter Type Description
$context \GraphQL\Validator\ValidationContext
$name mixed

typeIncompatibleSpreadMessage

public static typeIncompatibleSpreadMessage(mixed $fragName, mixed $parentType, mixed $fragType): mixed
  • This method is static.

Parameters:

Parameter Type Description
$fragName mixed
$parentType mixed
$fragType mixed

Inherited methods

getName

public getName(): mixed

__invoke

public __invoke(\GraphQL\Validator\ValidationContext $context): mixed

Parameters:

Parameter Type Description
$context \GraphQL\Validator\ValidationContext

getVisitor

Returns structure suitable for GraphQL\Language\Visitor

public getVisitor(\GraphQL\Validator\ValidationContext $context): array

Parameters:

Parameter Type Description
$context \GraphQL\Validator\ValidationContext

See Also:

  • \GraphQL\Language\Visitor -

getSDLVisitor

Returns structure suitable for GraphQL\Language\Visitor

public getSDLVisitor(\GraphQL\Validator\SDLValidationContext $context): array

Parameters:

Parameter Type Description
$context \GraphQL\Validator\SDLValidationContext

See Also:

  • \GraphQL\Language\Visitor -