C# Class GraphQL.Validation.Rules.FragmentsOnCompositeTypes

Fragments on composite type Fragments use a type condition to determine if they apply, since fragments can only be spread into a composite type (object, interface, or union), the type condition must also be a composite type.
Inheritance: IValidationRule
Mostra file Open project: graphql-dotnet/graphql-dotnet

Public Methods

Method Description
FragmentOnNonCompositeErrorMessage ( string fragName, string type ) : string
InlineFragmentOnNonCompositeErrorMessage ( string type ) : string
Validate ( ValidationContext context ) : INodeVisitor

Method Details

FragmentOnNonCompositeErrorMessage() public method

public FragmentOnNonCompositeErrorMessage ( string fragName, string type ) : string
fragName string
type string
return string

InlineFragmentOnNonCompositeErrorMessage() public method

public InlineFragmentOnNonCompositeErrorMessage ( string type ) : string
type string
return string

Validate() public method

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