Sangria
Sangria
API
sangria
sangria.ast
AstVisitor
AstVisitor
DefaultAstVisitor
sangria.execution
AlternativeExecutionScheme
Extended
StreamBasedExecutionScheme
AttributeCoercionError
BeforeFieldResult
BeforeFieldResult
CollectedField
CollectedFields
CollectedFieldsBuilder
DeferredWithInfo
DeprecationTracker
DeprecationTracker
ErrorWithResolver
ExceptionHandler
ExceptionHandler
ExecutionError
ExecutionPath
ExecutionPath
ExecutionResult
ExecutionScheme
ExecutionScheme
Default
Executor
Executor
Extension
FieldCollector
FieldTag
FieldTag
HandledException
HandledException
HasIntrospectionReducer
InputDocumentMaterializationError
InputDocumentMaterializer
InputDocumentMaterializer
InternalExecutionError
IntrospectionNotAllowedError
LoggingDeprecationTracker
MappedCtxUpdate
MaterializedSchemaValidationError
MaxQueryDepthReachedError
MeasureComplexity
MeasureComplexity
MeasureQueryDepth
Middleware
Middleware
MiddlewareAfterField
MiddlewareAttachment
MiddlewareBeforeField
MiddlewareErrorField
MiddlewareExtension
MiddlewareFromScalar
MiddlewareQueryContext
MiddlewareToScalar
MultipleHandledExceptions
NilDeprecationTracker
OperationSelectionError
PreparedField
PreparedQuery
QueryAnalysisError
QueryReducer
QueryReducer
QueryReducerExecutor
QueryReducingError
RegisteredError
Resolver
ResultResolver
ErrorRegistry
ErrorRegistry
ResultResolver
SimpleAstBasedExtensionMiddleware
SingleHandledException
StopWatch
StopWatch
StringTag
SubscriptionField
TagCollector
TimeMeasurement
TimeMeasurement
Trinary
Trinary
Defined
Null
NullWithDefault
Undefined
UndefinedConcreteTypeError
UndefinedConcreteTypeError
UserFacingError
ValidationError
ValueCoercionHelper
ValueCoercionHelper
ValueCollector
ValueCollector
VariableCoercionError
VariableValue
WithViolations
sangria.execution.batch
BatchExecutionError
BatchExecutionPlan
BatchExecutionPlan
Export
ExportFragment
ExportOperation
SpreadInfo
BatchExecutionViolationError
BatchExecutor
CircularOperationDependencyViolation
UndefinedVariableDefinitionViolation
VariableDefinitionInferenceViolation
sangria.execution.deferred
AbsentDeferredRelValueError
AbsentDeferredValueError
AbstractRelation
Deferred
DeferredOne
DeferredOpt
DeferredOptOpt
DeferredRel
DeferredRelOpt
DeferredRelSeq
DeferredRelSeqMany
DeferredResolver
DeferredResolver
DeferredSeq
DeferredSeqOpt
Fetcher
Fetcher
FetcherBasedDeferredResolver
FetcherCache
FetcherCache
FetcherConfig
FetcherConfig
FetcherContext
FetcherDeferredOne
FetcherDeferredOpt
FetcherDeferredOptOpt
FetcherDeferredRel
FetcherDeferredRelOpt
FetcherDeferredRelSeq
FetcherDeferredRelSeqMany
FetcherDeferredSeq
FetcherDeferredSeqOpt
FetcherDeferredSeqOptExplicit
HasId
HasId
Relation
Relation
RelationIds
RelationNotSupportedError
RelationOnlySupportedError
SimpleFetcherCache
SimpleRelation
UnsupportedDeferError
sangria.introspection
IntrospectionDirective
IntrospectionEnumType
IntrospectionEnumValue
IntrospectionField
IntrospectionInputObjectType
IntrospectionInputValue
IntrospectionInterfaceType
IntrospectionInterfaceType
IntrospectionListTypeRef
IntrospectionNamedTypeRef
IntrospectionNonNullTypeRef
IntrospectionObjectType
IntrospectionParser
IntrospectionScalarType
IntrospectionSchema
IntrospectionType
IntrospectionTypeRef
IntrospectionUnionType
sangria.macros
ParseMacro
ToExprGivens
given_ToExpr_Argument
given_ToExpr_AstLocation
given_ToExpr_Comment
given_ToExpr_Definition
given_ToExpr_Directive
given_ToExpr_DirectiveLocation
given_ToExpr_Document
given_ToExpr_EnumValueDefinition
given_ToExpr_FieldDefinition
given_ToExpr_InputDocument
given_ToExpr_InputValueDefinition
given_ToExpr_NamedType
given_ToExpr_ObjectField
given_ToExpr_OperationType
given_ToExpr_OperationTypeDefinition
given_ToExpr_Selection
given_ToExpr_StringValue
given_ToExpr_Type
given_ToExpr_Value
given_ToExpr_VariableDefinition
sangria.marshalling
QueryAstInputUnmarshaller
QueryAstResultMarshaller
queryAst
QueryAstInputParser
QueryAstMarshallerForType
sangria.renderer
Indent
QueryRenderer
QueryRendererConfig
SchemaFilter
SchemaFilter
SchemaRenderer
sangria.schema
AbstractType
Action
Action
AdditionalDirectives
AdditionalTypes
AdditionalTypes
AnyFieldResolver
AnyFieldResolver
Args
Args
Argument
Argument
ArgumentType
ArgumentType
ArgumentTypeLowPrio
ArgumentTypeLowestPrio
AstDirectiveContext
AstDirectiveInputTypeContext
AstDirectiveOutputTypeContext
AstDirectiveScalarContext
AstInputTypeContext
AstNodeTransformer
AstOutputTypeContext
AstSchemaBuilder
AstSchemaBuilder
FieldName
TypeName
AstSchemaGenericResolver
AstSchemaMaterializer
AstSchemaMaterializer
SchemaInfo
AstSchemaResolver
BaseMatOrigin
BuiltMaterializedTypeInst
ComplexityDirectiveContext
ComplexityDynamicDirectiveContext
CompositeType
ConflictResolver
ContainerMembersValidator
Context
DefaultAstSchemaBuilder
DefaultIntrospectionSchemaBuilder
DefaultIntrospectionSchemaBuilder
MaterializedSchemaException
MaterializedSchemaViolation
DefaultValueParser
DefaultValueParser
DefaultValueRenderer
DefaultValuesValidationRule
DeferredFutureValue
DeferredValue
Directive
DirectiveContext
DirectiveFieldProvider
DirectiveFieldProviderContext
DirectiveInputTypeResolver
DirectiveOutputTypeResolver
DirectiveResolver
DirectiveScalarResolver
DynamicDirectiveContext
DynamicDirectiveFieldProvider
DynamicDirectiveFieldProviderContext
DynamicDirectiveResolver
EnumType
EnumValue
EnumValueReservedNameValidator
ExistingEnumContext
ExistingEnumResolver
ExistingFieldResolver
ExistingFieldResolver
ExistingInstanceCheck
ExistingInstanceCheckContext
ExistingScalarContext
ExistingScalarResolver
ExistingSchemaOrigin
Field
Field
FieldResolver
FieldResolver
FullSchemaTraversalValidationRule
FutureValue
GenericDirectiveContext
GenericDirectiveResolver
GenericDynamicDirectiveContext
GenericDynamicDirectiveResolver
HasArguments
HasAstInfo
HasDeprecation
HasDescription
InputField
InputField
InputMaterializationException
InputObjectDefaultResult
InputObjectDefaultResult
InputObjectDefaultResultLowPrio
InputObjectType
InputObjectType
InputObjectTypeRecursionValidator
InputType
InputTypeResolver
InputValue
InstanceCheck
InstanceCheck
InstanceCheckContext
InterfaceImplementationValidationRule
InterfaceType
InterfaceType
IntrospectionNamesValidator
IntrospectionSchemaBuilder
IntrospectionSchemaBuilder
IntrospectionSchemaMaterializer
IntrospectionSchemaMaterializer
LeafAction
LeafAction
LeafType
ListInputType
ListType
LowPrioActions
LowestPrioActions
MappedAbstractType
MappedSequenceLeafAction
MappedUpdateCtx
MappingDeferred
MatOrigin
MaterializedField
MaterializedField
MaterializedFieldAst
MaterializedFieldInst
MaterializedType
MaterializedType
MaterializedTypeAst
MaterializedTypeInst
Named
Named
NullableType
ObjectLikeType
ObjectType
ObjectType
OptionInputType
OptionType
OutputType
OutputTypeResolver
PartialFutureValue
PartialValue
PossibleInterface
PossibleInterface
PossibleInterfaceLowPrioImplicits
PossibleObject
PossibleObject
PossibleType
PossibleType
ProjectedName
ProjectionExclude
ProjectionName
Projector
Projector
ReduceAction
ReduceAction
ResolvedDirectiveValidationRule
ResolverBasedAstSchemaBuilder
ResolverBasedAstSchemaBuilder
SDLOrigin
ScalarAlias
ScalarResolver
ScalarType
Schema
Schema
SchemaChange
SchemaChange
AbstractAstDirectiveAdded
AbstractAstDirectiveRemoved
AbstractChange
AstDirectiveAdded
AstDirectiveRemoved
DeprecationChange
DescriptionChange
DirectiveAdded
DirectiveArgumentAdded
DirectiveArgumentAstDirectiveAdded
DirectiveArgumentAstDirectiveRemoved
DirectiveArgumentDefaultChanged
DirectiveArgumentDescriptionChanged
DirectiveArgumentRemoved
DirectiveArgumentTypeChanged
DirectiveDescriptionChanged
DirectiveLocationAdded
DirectiveLocationRemoved
DirectiveRemoved
DirectiveRepeatableChanged
EnumTypeAstDirectiveAdded
EnumTypeAstDirectiveRemoved
EnumValueAdded
EnumValueAstDirectiveAdded
EnumValueAstDirectiveRemoved
EnumValueDeprecated
EnumValueDescriptionChanged
EnumValueRemoved
FieldAdded
FieldArgumentAstDirectiveAdded
FieldArgumentAstDirectiveRemoved
FieldAstDirectiveAdded
FieldAstDirectiveRemoved
FieldDeprecationChanged
FieldDescriptionChanged
FieldRemoved
FieldTypeChanged
InputFieldAdded
InputFieldAstDirectiveAdded
InputFieldAstDirectiveRemoved
InputFieldDefaultChanged
InputFieldDescriptionChanged
InputFieldRemoved
InputFieldTypeChanged
InputObjectTypeAstDirectiveAdded
InputObjectTypeAstDirectiveRemoved
InterfaceTypeAstDirectiveAdded
InterfaceTypeAstDirectiveRemoved
ObjectTypeArgumentAdded
ObjectTypeArgumentDefaultChanged
ObjectTypeArgumentDescriptionChanged
ObjectTypeArgumentRemoved
ObjectTypeArgumentTypeChanged
ObjectTypeAstDirectiveAdded
ObjectTypeAstDirectiveRemoved
ObjectTypeInterfaceAdded
ObjectTypeInterfaceRemoved
ScalarTypeAstDirectiveAdded
ScalarTypeAstDirectiveRemoved
SchemaAstDirectiveAdded
SchemaAstDirectiveRemoved
SchemaDescriptionChanged
SchemaMutationTypeChanged
SchemaQueryTypeChanged
SchemaSubscriptionTypeChanged
TypeAdded
TypeChange
TypeDescriptionChanged
TypeKindChanged
TypeRemoved
UnionMemberAdded
UnionMemberRemoved
UnionTypeAstDirectiveAdded
UnionTypeAstDirectiveRemoved
SchemaComparator
SchemaElementValidator
SchemaElementValidator
SchemaMaterializationException
SchemaValidationException
SchemaValidationRule
SchemaValidationRule
SequenceLeafAction
SimpleEnumValueResolver
StandaloneOrigin
StandardLeafAction
SubscriptionFieldsValidationRule
TryValue
Type
UnionType
UnionType
UnmodifiedType
UpdateCtx
UpdateCtx
ValidNamesValidator
ValidOutType
ValidOutType
Value
WithArguments
WithInputTypeRendering
WithTypeLookup
WithoutInputTypeTags
WithoutInputTypeTags
WithoutInputTypeTagsLowPrio
sangria.util
Cache
Cache
ConcurrentHashMapCache
StringUtil
TrieMapCache
sangria.validation
AnonOperationNotAloneViolation
AstNodeLocation
AstNodeViolation
BadValueForDefaultArgViolation
BadValueViolation
BadVarPositionViolation
BaseViolation
BigDecimalCoercionViolation
BigIntCoercionViolation
BigLongCoercionViolation
BooleanCoercionViolation
CircularImplementViolation
ConflictingInputObjectTypeCaseClassViolation
ConflictingObjectTypeCaseClassViolation
ConflictingTypeDefinitionViolation
CycleErrorViolation
DefaultForNonNullArgViolation
DocumentAnalyzer
DuplicateArgNameViolation
DuplicateDirectiveViolation
DuplicateFragmentNameViolation
DuplicateInputFieldViolation
DuplicateOperationNameViolation
DuplicateVariableViolation
EmptyEnumValuesMembersViolation
EmptyFieldsViolation
EmptyInputFieldsViolation
EmptyUnionMembersViolation
EnumCoercionViolation
EnumValueCoercionViolation
ExistingTypeViolation
FieldCoercionViolation
FieldsConflictViolation
FloatCoercionViolation
FragmentOnNonCompositeErrorViolation
GenericInvalidValueViolation
IDCoercionViolation
ImplementationExtraFieldArgumentNotOptionalViolation
InlineFragmentOnNonCompositeErrorViolation
InputObjectIsOfWrongTypeMissingViolation
InputObjectTypeMismatchViolation
InputObjectTypeRecursion
IntCoercionViolation
InvalidDirectiveArgumentNameViolation
InvalidDirectiveNameViolation
InvalidEnumValueNameViolation
InvalidFieldArgumentNameViolation
InvalidFieldNameViolation
InvalidImplementationFieldArgumentTypeViolation
InvalidImplementationFieldTypeViolation
InvalidInputDocumentViolation
InvalidInputFieldNameViolation
InvalidInputValueViolation
InvalidSubscriptionFieldViolation
InvalidTypeNameViolation
InvalidTypeUsageViolation
ListValueViolation
LongCoercionViolation
MapValueViolation
MisplacedDirectiveViolation
MissingFieldArgViolation
MissingImplementationFieldArgumentViolation
NoInterfaceImplementationViolation
NoQueryTypeViolation
NoSubselectionAllowedViolation
NonExecutableDefinitionViolation
NonInputTypeOnVarViolation
NonUniqueDirectiveArgumentsViolation
NonUniqueDirectiveDefinitionViolation
NonUniqueEnumValuesViolation
NonUniqueFieldArgumentsViolation
NonUniqueFieldsViolation
NonUniqueInputFieldsViolation
NonUniqueInterfacesViolation
NonUniqueRootTypeViolation
NonUniqueSchemaDefinitionViolation
NonUniqueTypeDefinitionViolation
NonUniqueUnionMembersViolation
NotAllSubscriptionFieldsHaveSameStreamViolation
NotAllSubscriptionFieldsViolation
NotNullInputObjectFieldMissingViolation
NotNullValueIsNullViolation
NullValueForNotNullTypeViolation
PathBasedViolation
QueryValidator
QueryValidator
RequiredFieldViolation
RequiredSubselectionViolation
ReservedEnumValueNameViolation
ReservedNameViolation
ReservedTypeNameViolation
RuleBasedQueryValidator
SchemaBasedDocumentAnalyzer
SchemaBasedDocumentAnalyzer
DeprecatedEnumValue
DeprecatedField
DeprecatedUsage
IntrospectionUsage
VariableUsage
SpecViolation
StringCoercionViolation
SubscriptionSingleFieldOnlyViolation
TypeComparators
TypeExtensionOnNonExistingTypeViolation
TypeExtensionOnWrongKindViolation
TypeIncompatibleAnonSpreadViolation
TypeIncompatibleSpreadViolation
TypeInfo
UndefinedFieldViolation
UndefinedVarByOpViolation
UndefinedVarViolation
UnknownArgViolation
UnknownDirectiveArgViolation
UnknownDirectiveViolation
UnknownFieldViolation
UnknownFragmentViolation
UnknownInputObjectFieldViolation
UnknownTypeViolation
UnknownVariableTypeViolation
UnusedFragmentViolation
UnusedVariableViolation
ValidationContext
ValidationContext
ValidationRule
AstValidatingVisitor
ValidatorStack
ValidatorStack
ValueCoercionViolation
VarTypeMismatchViolation
VariableInferenceViolation
VariableNotAllowedViolation
Violation
Violation
sangria.validation.rules
ConflictReason
ExecutableDefinitions
FieldsOnCorrectType
FragmentsOnCompositeTypes
InputDocumentNonConflictingVariableInference
KnownArgumentNames
KnownDirectives
KnownDirectives
KnownFragmentNames
KnownTypeNames
KnownTypeNames
SuggestionFunction
Default
Disabled
SuggestionFunction
LoneAnonymousOperation
NoFragmentCycles
NoUndefinedVariables
NoUnusedFragments
NoUnusedVariables
OverlappingFieldsCanBeMerged
PossibleFragmentSpreads
ProvidedRequiredArguments
ScalarLeafs
SingleFieldSubscriptions
UniqueArgumentNames
UniqueDirectivesPerLocation
UniqueFragmentNames
UniqueInputFieldNames
UniqueOperationNames
UniqueVariableNames
ValuesOfCorrectType
VariablesAreInputTypes
VariablesInAllowedPosition
sangria.validation.rules.overlappingfields
CachedCheck
FieldNameAndArguments
OutputName
SelectionBuilder
SelectionConflictViolation
SelectionConflictViolationsBuilder
SelectionContainer
SelectionContainer
SelectionField
SortedArraySet
SortedArraySet
Builder
TypeAbstractness
TypeAbstractness
Abstract
Concrete
TypeShape
TypeShape
Known
Shape
CompositeShape
LeafShape
ListShape
OptionShape
Shape
Unknown
Sangria
/
sangria.validation
/
RuleBasedQueryValidator
RuleBasedQueryValidator
sangria.validation.RuleBasedQueryValidator
class
RuleBasedQueryValidator
(
rules
:
List
[
ValidationRule
])
extends
QueryValidator
Attributes
Graph
Reset zoom
Hide graph
Show graph
Supertypes
trait
QueryValidator
class
Object
trait
Matchable
class
Any
Clear all
Members list
Concise view
Value members
Concrete methods
def
handleResult
(
ctx
:
ValidationContext
,
node
:
AstNode
,
visitor
:
AstValidatingVisitor
,
visitRes
:
Either
[
Vector
[
Violation
],
Value
]):
Matchable
def
validateInputDocument
(
schema
:
Schema
[
_
,
_
],
doc
:
InputDocument
,
inputTypeName
:
String
):
Vector
[
Violation
]
def
validateInputDocument
(
schema
:
Schema
[
_
,
_
],
doc
:
InputDocument
,
inputType
:
InputType
[
_
]):
Vector
[
Violation
]
def
validateQuery
(
schema
:
Schema
[
_
,
_
],
queryAst
:
Document
):
Vector
[
Violation
]
def
validateUsingRules
(
queryAst
:
AstNode
,
ctx
:
ValidationContext
,
visitors
:
List
[
AstValidatingVisitor
],
topLevel
:
Boolean
):
Unit
def
withoutValidation
[
T
:
ClassTag
]:
RuleBasedQueryValidator