C# Class GraphQL.Validation.Rules.PossibleFragmentSpreads

Possible fragment spread A fragment spread is only valid if the type condition could ever possibly be true: if there is a non-empty intersection of the possible parent types, and possible types which pass the type condition.
Inheritance: IValidationRule
Exibir arquivo Open project: graphql-dotnet/graphql-dotnet

Public Methods

Method Description
TypeIncompatibleAnonSpreadMessage ( string parentType, string fragType ) : string
TypeIncompatibleSpreadMessage ( string fragName, string parentType, string fragType ) : string
Validate ( ValidationContext context ) : INodeVisitor

Private Methods

Method Description
getFragmentType ( ValidationContext context, string name ) : IGraphType

Method Details

TypeIncompatibleAnonSpreadMessage() public method

public TypeIncompatibleAnonSpreadMessage ( string parentType, string fragType ) : string
parentType string
fragType string
return string

TypeIncompatibleSpreadMessage() public method

public TypeIncompatibleSpreadMessage ( string fragName, string parentType, string fragType ) : string
fragName string
parentType string
fragType string
return string

Validate() public method

public Validate ( ValidationContext context ) : INodeVisitor
context ValidationContext
return INodeVisitor