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
Afficher le fichier Open project: graphql-dotnet/graphql-dotnet

Méthodes publiques

Méthode Description
TypeIncompatibleAnonSpreadMessage ( string parentType, string fragType ) : string
TypeIncompatibleSpreadMessage ( string fragName, string parentType, string fragType ) : string
Validate ( ValidationContext context ) : INodeVisitor

Private Methods

Méthode Description
getFragmentType ( ValidationContext context, string name ) : IGraphType

Method Details

TypeIncompatibleAnonSpreadMessage() public méthode

public TypeIncompatibleAnonSpreadMessage ( string parentType, string fragType ) : string
parentType string
fragType string
Résultat string

TypeIncompatibleSpreadMessage() public méthode

public TypeIncompatibleSpreadMessage ( string fragName, string parentType, string fragType ) : string
fragName string
parentType string
fragType string
Résultat string

Validate() public méthode

public Validate ( ValidationContext context ) : INodeVisitor
context ValidationContext
Résultat INodeVisitor