PHP Class GraphQL\Validator\Rules\OverlappingFieldsCanBeMerged

Show file Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$comparedSet GraphQL\Utils\PairSet

Public Methods

Method Description
__invoke ( ValidationContext $context )
fieldsConflictMessage ( $responseName, $reason )
reasonMessage ( $reason )
sameType ( $type1, $type2 )

Private Methods

Method Description
collectFieldNodesAndDefs ( ValidationContext $context, mixed $parentType, SelectionSetNode $selectionSet, ArrayObject $visitedFragmentNames = null, ArrayObject $astAndDefs = null ) : mixed Given a selectionSet, adds all of the fields in that selection to the passed in map of fields, and returns it at the end.
doTypesConflict ( GraphQL\Type\Definition\OutputType $type1, GraphQL\Type\Definition\OutputType $type2 ) : boolean
findConflict ( $parentFieldsAreMutuallyExclusive, $responseName, array $pair1, array $pair2, ValidationContext $context ) : array | null
findConflicts ( $parentFieldsAreMutuallyExclusive, $fieldMap, ValidationContext $context )
getSubfieldMap ( FieldNode $ast1, $type1, FieldNode $ast2, $type2, ValidationContext $context )
sameArguments ( array $arguments1, array $arguments2 ) : boolean | string
sameValue ( $value1, $value2 )
subfieldConflicts ( array $conflicts, $responseName, FieldNode $ast1, FieldNode $ast2 )

Method Details

__invoke() public method

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

fieldsConflictMessage() static public method

static public fieldsConflictMessage ( $responseName, $reason )

reasonMessage() static public method

static public reasonMessage ( $reason )

sameType() public method

public sameType ( $type1, $type2 )

Property Details

$comparedSet public property

public PairSet,GraphQL\Utils $comparedSet
return GraphQL\Utils\PairSet