sangria.schema

Types that describe a GraphQL schema.

In order to serve GraphQL, one needs to define a GraphQL schema built upon these types.

Attributes

Members list

Concise view

Type members

Classlikes

sealed trait AbstractType extends Type with Named

Attributes

Graph
Supertypes
trait Named
trait Type
class Object
trait Matchable
class Any
Known subtypes
class InterfaceType[Ctx, Val]
class UnionType[Ctx]
trait Action[+Ctx, +Val]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait LeafAction[Ctx, Val]
trait StandardLeafAction[Ctx, Val]
class DeferredFutureValue[Ctx, Val]
class DeferredValue[Ctx, Val]
class FutureValue[Ctx, Val]
class MappedSequenceLeafAction[Ctx, Val, NewVal]
class PartialFutureValue[Ctx, Val]
class PartialValue[Ctx, Val]
class SequenceLeafAction[Ctx, Val]
class TryValue[Ctx, Val]
class Value[Ctx, Val]
class MappedUpdateCtx[Ctx, Val, NewVal]
trait ReduceAction[Ctx, Val]
class UpdateCtx[Ctx, Val]
object Action extends LowPrioActions

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Action.type
case class AdditionalDirectives[Ctx](additionalDirectives: Seq[Directive]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class AdditionalTypes[Ctx](additionalTypes: List[MaterializedType]) extends AstSchemaResolver[Ctx]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class AnyFieldResolver[Ctx](resolve: PartialFunction[MatOrigin, Context[Ctx, _] => Action[Ctx, Any]]) extends AstSchemaResolver[Ctx]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class Args(raw: Map[String, Any], argsWithDefault: Set[String], optionalArgs: Set[String], undefinedArgs: Set[String], defaultInfo: Cache[String, Any])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Args

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Args.type
case class Argument[T](name: String, argumentType: InputType[_], description: Option[String], defaultValue: Option[(, ToInput[_, _])], fromInput: FromInput[_], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends InputValue[T] with Named with HasAstInfo

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Named
trait InputValue[T]
class Object
trait Matchable
class Any
object Argument

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait ArgumentType[T]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ArgumentType.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class AstDirectiveContext[Ctx](directive: Directive, typeDefinition: Either[TypeDefinition, ObjectLikeType[Ctx, _]], fieldDefinition: FieldDefinition, extensions: Vector[ObjectLikeTypeExtensionDefinition], ctx: Context[Ctx, _], lastValue: Option[Action[Ctx, Any]], args: Args) extends WithArguments

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class AstDirectiveInputTypeContext[Ctx](origin: MatOrigin, directive: Directive, schemaDefinition: Option[Type & Named], astDefinition: Option[TypeSystemDefinition], astField: Option[FieldDefinition], definition: InputValueDefinition, materializer: AstSchemaMaterializer[Ctx], args: Args) extends WithArguments with WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any
case class AstDirectiveOutputTypeContext[Ctx](origin: MatOrigin, directive: Directive, typeDefinition: Either[TypeDefinition, ObjectLikeType[Ctx, _]], fieldDefinition: FieldDefinition, extensions: Vector[ObjectLikeTypeExtensionDefinition], materializer: AstSchemaMaterializer[Ctx], args: Args) extends WithArguments with WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any
case class AstDirectiveScalarContext(directive: Directive, definition: ScalarTypeDefinition, args: Args) extends WithArguments

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class AstInputTypeContext[Ctx](origin: MatOrigin, schemaDefinition: Option[Type & Named], astDefinition: Option[TypeSystemDefinition], astField: Option[FieldDefinition], definition: InputValueDefinition, materializer: AstSchemaMaterializer[Ctx]) extends WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class AstOutputTypeContext[Ctx](origin: MatOrigin, typeDefinition: Either[TypeDefinition, ObjectLikeType[Ctx, _]], fieldDefinition: FieldDefinition, extensions: Vector[ObjectLikeTypeExtensionDefinition], materializer: AstSchemaMaterializer[Ctx]) extends WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any
trait AstSchemaBuilder[Ctx]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait AstSchemaGenericResolver[T]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class BaseMatOrigin(val description: String) extends MatOrigin

Attributes

Graph
Supertypes
trait MatOrigin
class Object
trait Matchable
class Any
Known subtypes
class ExistingSchemaOrigin[Ctx, Val]
class SDLOrigin
object StandaloneOrigin.type
case class BuiltMaterializedTypeInst(origin: MatOrigin, tpe: Type & Named) extends MaterializedType

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ComplexityDirectiveContext[Ctx](directive: Directive, typeDefinition: Either[TypeDefinition, ObjectLikeType[Ctx, _]], fieldDefinition: FieldDefinition, args: Args)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ComplexityDynamicDirectiveContext[Ctx, In](directive: Directive, typeDefinition: Either[TypeDefinition, ObjectLikeType[Ctx, _]], fieldDefinition: FieldDefinition, args: In)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed trait CompositeType[T] extends Type with Named with OutputType[T]

Attributes

Graph
Supertypes
trait OutputType[T]
trait Named
trait Type
class Object
trait Matchable
class Any
Known subtypes
trait ObjectLikeType[Ctx, Val]
class InterfaceType[Ctx, Val]
class ObjectType[Ctx, Val]
class UnionType[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Context[Ctx, Val](value: Val, ctx: Ctx, args: Args, schema: Schema[Ctx, Val], field: Field[Ctx, Val], parentType: ObjectType[Ctx, Any], marshaller: ResultMarshaller, query: Document, sourceMapper: Option[SourceMapper], deprecationTracker: DeprecationTracker, astFields: Vector[Field], path: ExecutionPath, deferredResolverState: Any, middlewareAttachments: Vector[MiddlewareAttachment]) extends WithArguments with WithInputTypeRendering[Ctx]

The context of a field during schema resolution.

The context of a field during schema resolution.

When a GraphQL request is executed by a Sangria server, each field in the request is resolved to determine the data that should be returned. An instance of this class provides the context for a particular field's resolution.

Attributes

Ctx

Type of the context object that was passed to Sangria's execution method.

Val

Type of the object to which the field belongs.

ctx

The context object that was passed to Sangria's execution method.

value

The object to which the field belongs.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait AstSchemaBuilder[Ctx]
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class DefaultValueParser[T](schema: Schema[_, _], parser: InputParser[T], toInput: ToInput[T, _])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class DeferredFutureValue[Ctx, Val](value: Future[Deferred[Val]]) extends StandardLeafAction[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StandardLeafAction[Ctx, Val]
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
case class DeferredValue[Ctx, Val](value: Deferred[Val]) extends StandardLeafAction[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StandardLeafAction[Ctx, Val]
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
case class Directive(name: String, description: Option[String], arguments: List[Argument[_]], locations: Set[Value], repeatable: Boolean, shouldInclude: DirectiveContext => Boolean) extends HasArguments with Named

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Named
class Object
trait Matchable
class Any
case class DirectiveContext(selection: WithDirectives, directive: Directive, args: Args) extends WithArguments

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DirectiveFieldProvider[Ctx](directive: Directive, resolve: DirectiveFieldProviderContext[Ctx] => List[MaterializedField[Ctx, _]]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DirectiveFieldProviderContext[Ctx](origin: MatOrigin, directive: Directive, typeDefinition: TypeDefinition, extensions: Vector[ObjectLikeTypeExtensionDefinition], materializer: AstSchemaMaterializer[Ctx], args: Args) extends WithArguments with WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any
case class DirectiveInputTypeResolver[Ctx](directive: Directive, resolve: AstDirectiveInputTypeContext[Ctx] => InputType[Any]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DirectiveOutputTypeResolver[Ctx](directive: Directive, resolve: AstDirectiveOutputTypeContext[Ctx] => OutputType[Any]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DirectiveResolver[Ctx](directive: Directive, resolve: AstDirectiveContext[Ctx] => Action[Ctx, Any], complexity: Option[ComplexityDirectiveContext[Ctx] => (Ctx, Args, Double) => Double]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DirectiveScalarResolver[Ctx](directive: Directive, resolve: AstDirectiveScalarContext => ScalarType[_]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DynamicDirectiveContext[Ctx, In](directive: Directive, typeDefinition: Either[TypeDefinition, ObjectLikeType[Ctx, _]], fieldDefinition: FieldDefinition, extensions: Vector[ObjectLikeTypeExtensionDefinition], ctx: Context[Ctx, _], lastValue: Option[Action[Ctx, Any]], args: In)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DynamicDirectiveFieldProvider[Ctx, A](directiveName: String, resolve: DynamicDirectiveFieldProviderContext[Ctx, A] => List[MaterializedField[Ctx, _]])(implicit marshaller: ResultMarshallerForType[A]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class DynamicDirectiveFieldProviderContext[Ctx, A](origin: MatOrigin, directive: Directive, typeDefinition: TypeDefinition, extensions: Vector[ObjectLikeTypeExtensionDefinition], materializer: AstSchemaMaterializer[Ctx], args: A) extends WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any
case class DynamicDirectiveResolver[Ctx, T](directiveName: String, resolve: DynamicDirectiveContext[Ctx, T] => Action[Ctx, Any], complexity: Option[ComplexityDynamicDirectiveContext[Ctx, T] => (Ctx, Args, Double) => Double])(implicit marshaller: ResultMarshallerForType[T]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class EnumType[T](name: String, description: Option[String], values: List[EnumValue[T]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends InputType[T @@ CoercedScalaResult] with OutputType[T] with LeafType with NullableType with UnmodifiedType with Named with HasAstInfo

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait LeafType
trait Named
trait OutputType[T]
trait InputType[T @@ CoercedScalaResult]
trait Type
class Object
trait Matchable
class Any
case class EnumValue[+T](name: String, description: Option[String], value: T, deprecationReason: Option[String], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends Named with HasDeprecation with HasAstInfo

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Named
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class ExistingEnumContext[Ctx](origin: MatOrigin, extensions: Vector[EnumTypeExtensionDefinition], existing: EnumType[Any], materializer: AstSchemaMaterializer[Ctx]) extends WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any
case class ExistingEnumResolver[Ctx](resolve: PartialFunction[ExistingEnumContext[Ctx], EnumType[Any]]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ExistingFieldResolver[Ctx](resolve: PartialFunction[(MatOrigin, Option[ObjectLikeType[Ctx, _]], Field[Ctx, _]), Context[Ctx, _] => Action[Ctx, Any]]) extends AstSchemaResolver[Ctx]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExistingInstanceCheck[Ctx](fn: ExistingInstanceCheckContext[Ctx] => (Any, Class[_]) => Boolean) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ExistingInstanceCheckContext[Ctx](origin: MatOrigin, tpe: ObjectType[Ctx, _], extensions: List[ObjectTypeExtensionDefinition])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ExistingScalarContext[Ctx](origin: MatOrigin, extensions: Vector[ScalarTypeExtensionDefinition], existing: ScalarType[Any], materializer: AstSchemaMaterializer[Ctx]) extends WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithTypeLookup[Ctx]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ExistingSchemaOrigin[Ctx, Val](schema: Schema[Ctx, Val]) extends BaseMatOrigin

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MatOrigin
class Object
trait Matchable
class Any
case class Field[Ctx, Val](name: String, fieldType: OutputType[_], description: Option[String], arguments: List[Argument[_]], resolve: Context[Ctx, Val] => Action[Ctx, _], deprecationReason: Option[String], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) => Double], manualPossibleTypes: () => List[ObjectType[_, _]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends Named with HasArguments with HasDeprecation with HasAstInfo

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

resolve

A function that maps the context of this field definition to an action that retrieves the field's data.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Named
class Object
trait Matchable
class Any
object Field

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Field.type
case class FieldResolver[Ctx](resolve: PartialFunction[(Either[TypeDefinition, ObjectLikeType[Ctx, _]], FieldDefinition), Context[Ctx, _] => Action[Ctx, Any]], complexity: PartialFunction[(Either[TypeDefinition, ObjectLikeType[Ctx, _]], FieldDefinition), (Ctx, Args, Double) => Double]) extends AstSchemaResolver[Ctx]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
case class FutureValue[Ctx, Val](value: Future[Val]) extends StandardLeafAction[Ctx, Val] with ReduceAction[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ReduceAction[Ctx, Val]
trait StandardLeafAction[Ctx, Val]
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
case class GenericDirectiveContext(directive: Directive, astNode: AstNode, args: Args) extends WithArguments

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class GenericDirectiveResolver[T](directive: Directive, locations: Set[Value], resolve: GenericDirectiveContext => Option[T]) extends AstSchemaGenericResolver[T]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class GenericDynamicDirectiveContext[A](directive: Directive, astNode: AstNode, args: A)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class GenericDynamicDirectiveResolver[T, A](directiveName: String, locations: Set[Value], resolve: GenericDynamicDirectiveContext[A] => Option[T])(implicit marshaller: ResultMarshallerForType[A]) extends AstSchemaGenericResolver[T]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed trait HasArguments

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Directive
class Field[Ctx, Val]
sealed trait HasAstInfo

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Argument[T]
class EnumType[T]
class EnumValue[T]
class Field[Ctx, Val]
class InputField[T]
trait LeafType
class ScalarAlias[T, ST]
class ScalarType[T]
trait ObjectLikeType[Ctx, Val]
class InterfaceType[Ctx, Val]
class ObjectType[Ctx, Val]
class Schema[Ctx, Val]
class UnionType[Ctx]
sealed trait HasDeprecation

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class EnumValue[T]
class Field[Ctx, Val]
sealed trait HasDescription

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Named
class InterfaceType[Ctx, Val]
class UnionType[Ctx]
class Argument[T]
trait CompositeType[T]
trait ObjectLikeType[Ctx, Val]
class ObjectType[Ctx, Val]
class Directive
class EnumType[T]
class EnumValue[T]
class Field[Ctx, Val]
class InputField[T]
trait LeafType
class ScalarAlias[T, ST]
class ScalarType[T]
class Schema[Ctx, Val]
case class InputField[T](name: String, fieldType: InputType[T], description: Option[String], defaultValue: Option[(, ToInput[_, _])], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends InputValue[T] with Named with HasAstInfo

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Named
trait InputValue[T]
class Object
trait Matchable
class Any
object InputField

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class InputMaterializationException(message: String) extends Exception

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class InputObjectType[T](name: String, description: Option[String], fieldsFn: () => List[InputField[_]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends InputType[T @@ InputObjectResult] with NullableType with UnmodifiedType with Named with HasAstInfo

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Named
trait InputType[T @@ InputObjectResult]
trait Type
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait InputType[+T] extends Type

Attributes

Graph
Supertypes
trait Type
class Object
trait Matchable
class Any
Known subtypes
class EnumType[T]
class ListInputType[T]
class ScalarAlias[T, ST]
class ScalarType[T]
case class InputTypeResolver[Ctx](resolve: PartialFunction[AstInputTypeContext[Ctx], InputType[Any]]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait InputValue[T]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Argument[T]
class InputField[T]
case class InstanceCheck[Ctx](fn: InstanceCheckContext[Ctx] => (Any, Class[_]) => Boolean) extends AstSchemaResolver[Ctx]

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class InstanceCheckContext[Ctx](origin: MatOrigin, definition: ObjectTypeDefinition, extensions: List[ObjectTypeExtensionDefinition])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class InterfaceType[Ctx, Val](name: String, description: Option[String], fieldsFn: () => List[Field[Ctx, Val]], interfaces: List[InterfaceType[Ctx, _]], manualPossibleTypes: () => List[ObjectType[_, _]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends ObjectLikeType[Ctx, Val] with AbstractType

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectLikeType[Ctx, Val]
trait CompositeType[Val]
trait Named
trait OutputType[Val]
trait Type
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class IntrospectionSchemaMaterializer[Ctx, T](introspectionResult: T, builder: IntrospectionSchemaBuilder[Ctx])(implicit evidence$1: InputUnmarshaller[T])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait LeafAction[+Ctx, +Val] extends Action[Ctx, Val]

Attributes

Companion:
object
Graph
Supertypes
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
Known subtypes
trait StandardLeafAction[Ctx, Val]
class DeferredFutureValue[Ctx, Val]
class DeferredValue[Ctx, Val]
class FutureValue[Ctx, Val]
class MappedSequenceLeafAction[Ctx, Val, NewVal]
class PartialFutureValue[Ctx, Val]
class PartialValue[Ctx, Val]
class SequenceLeafAction[Ctx, Val]
class TryValue[Ctx, Val]
class Value[Ctx, Val]
object LeafAction

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait LeafType extends Type with Named with HasAstInfo

Attributes

Graph
Supertypes
trait Named
trait Type
class Object
trait Matchable
class Any
Known subtypes
class EnumType[T]
class ScalarAlias[T, ST]
class ScalarType[T]
case class ListInputType[T](ofType: InputType[T]) extends InputType[Seq[T]] with NullableType

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait InputType[Seq[T]]
trait Type
class Object
trait Matchable
class Any
case class ListType[T](ofType: OutputType[T]) extends OutputType[Iterable[T]] with NullableType

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Type
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Action.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Action.type
sealed trait MappedAbstractType[T] extends Type with AbstractType

Attributes

Graph
Supertypes
trait Named
trait Type
class Object
trait Matchable
class Any
class MappedSequenceLeafAction[Ctx, Val, NewVal](val action: SequenceLeafAction[Ctx, Val], val mapFn: Seq[Val] => NewVal) extends StandardLeafAction[Ctx, NewVal]

Attributes

Graph
Supertypes
trait StandardLeafAction[Ctx, NewVal]
trait LeafAction[Ctx, NewVal]
trait Action[Ctx, NewVal]
class Object
trait Matchable
class Any
class MappedUpdateCtx[Ctx, Val, NewVal](val action: LeafAction[Ctx, Val], val nextCtx: Val => Ctx, val mapFn: Val => NewVal) extends Action[Ctx, NewVal]

Attributes

Graph
Supertypes
trait Action[Ctx, NewVal]
class Object
trait Matchable
class Any
case class MappingDeferred[A, +B](deferred: Deferred[A], mapFn: A => (B, Vector[Throwable])) extends Deferred[B]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Deferred[B]
class Object
trait Matchable
class Any
trait MatOrigin

Provide info on where the definitions came from. E.g. SDL, existing schema, etc

Provide info on where the definitions came from. E.g. SDL, existing schema, etc

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ExistingSchemaOrigin[Ctx, Val]
class SDLOrigin
object StandaloneOrigin.type
sealed trait MaterializedField[Ctx, +Val]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class MaterializedFieldAst[Ctx](origin: MatOrigin, field: FieldDefinition) extends MaterializedField[Ctx, Any]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MaterializedField[Ctx, Any]
class Object
trait Matchable
class Any
case class MaterializedFieldInst[Ctx, Val](origin: MatOrigin, field: Field[Ctx, Val]) extends MaterializedField[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MaterializedField[Ctx, Val]
class Object
trait Matchable
class Any
sealed trait MaterializedType

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class MaterializedTypeInst(origin: MatOrigin, tpe: Type & Named) extends MaterializedType

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed trait Named extends HasDescription

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class InterfaceType[Ctx, Val]
class UnionType[Ctx]
class Argument[T]
trait CompositeType[T]
trait ObjectLikeType[Ctx, Val]
class ObjectType[Ctx, Val]
class Directive
class EnumType[T]
class EnumValue[T]
class Field[Ctx, Val]
class InputField[T]
trait LeafType
class ScalarAlias[T, ST]
class ScalarType[T]
object Named

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Named.type
sealed trait NullableType

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class EnumType[T]
class ListInputType[T]
class ListType[T]
trait ObjectLikeType[Ctx, Val]
class InterfaceType[Ctx, Val]
class ObjectType[Ctx, Val]
class ScalarAlias[T, ST]
class ScalarType[T]
class UnionType[Ctx]
sealed trait ObjectLikeType[Ctx, Val] extends OutputType[Val] with CompositeType[Val] with NullableType with UnmodifiedType with Named with HasAstInfo

Attributes

Graph
Supertypes
trait CompositeType[Val]
trait Named
trait OutputType[Val]
trait Type
class Object
trait Matchable
class Any
Known subtypes
class InterfaceType[Ctx, Val]
class ObjectType[Ctx, Val]
case class ObjectType[Ctx, Val](name: String, description: Option[String], fieldsFn: () => List[Field[Ctx, Val]], interfaces: List[InterfaceType[Ctx, _]], instanceCheck: (Any, Class[_], ObjectType[Ctx, Val]) => Boolean, astDirectives: Vector[Directive], astNodes: Vector[AstNode])(implicit evidence$1: ClassTag[Val]) extends ObjectLikeType[Ctx, Val]

GraphQL schema object description.

GraphQL schema object description.

Describes a type of object in a GraphQL schema that is presented by a Sangria server. Objects of the type contain fields and can be viewed as simply a container of fields—internal nodes in the tree of data that a GraphQL request returns. The data store operations take place at the level of the fields that are leaf nodes in that tree.

Constructing the internal nodes of a schema consists mostly of constructing instances of this class.

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

See also:
Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectLikeType[Ctx, Val]
trait CompositeType[Val]
trait Named
trait OutputType[Val]
trait Type
class Object
trait Matchable
class Any
object ObjectType

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class OptionInputType[T](ofType: InputType[T]) extends InputType[Option[T]]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait InputType[Option[T]]
trait Type
class Object
trait Matchable
class Any
case class OptionType[T](ofType: OutputType[T]) extends OutputType[Option[T]]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait OutputType[Option[T]]
trait Type
class Object
trait Matchable
class Any
sealed trait OutputType[+T] extends Type

Attributes

Graph
Supertypes
trait Type
class Object
trait Matchable
class Any
Known subtypes
trait CompositeType[T]
trait ObjectLikeType[Ctx, Val]
class InterfaceType[Ctx, Val]
class ObjectType[Ctx, Val]
class UnionType[Ctx]
class EnumType[T]
class ListType[T]
class OptionType[T]
class ScalarAlias[T, ST]
class ScalarType[T]
case class OutputTypeResolver[Ctx](resolve: PartialFunction[AstOutputTypeContext[Ctx], OutputType[Any]]) extends AstSchemaResolver[Ctx]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class PartialFutureValue[Ctx, Val](value: Future[PartialValue[Ctx, Val]]) extends StandardLeafAction[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StandardLeafAction[Ctx, Val]
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
case class PartialValue[Ctx, Val](value: Val, errors: Vector[Throwable]) extends StandardLeafAction[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StandardLeafAction[Ctx, Val]
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
case class PossibleInterface[Ctx, Concrete](interfaceType: InterfaceType[Ctx, _])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PossibleInterface.type
case class PossibleObject[Ctx, Abstract](objectType: ObjectType[Ctx, _])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait PossibleType[AbstrType, ConcreteType]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class ProjectedName(name: String, children: Vector[ProjectedName], args: Args)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case object ProjectionExclude extends FieldTag

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait FieldTag
class Object
trait Matchable
class Any
Self type
case class ProjectionName(name: String) extends FieldTag

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait FieldTag
class Object
trait Matchable
class Any
trait Projector[Ctx, Val, Res] extends Context[Ctx, Val] => Action[Ctx, Res]

Attributes

Companion:
object
Graph
Supertypes
trait Context[Ctx, Val] => Action[Ctx, Res]
class Object
trait Matchable
class Any
object Projector

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait ReduceAction[+Ctx, +Val] extends Action[Ctx, Val]

Attributes

Companion:
object
Graph
Supertypes
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
Known subtypes
class FutureValue[Ctx, Val]
class TryValue[Ctx, Val]
class Value[Ctx, Val]

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
class ResolvedDirectiveValidationRule(knownUniqueDirectives: Set[String]) extends SchemaValidationRule

Validates uniqueness of directives on types and the schema definition.

Validates uniqueness of directives on types and the schema definition.

It is not fully covered by UniqueDirectivesPerLocation since it onl looks at one AST node at a time, so it does not cover type + type extension scenario.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ResolverBasedAstSchemaBuilder[Ctx](val resolvers: Seq[AstSchemaResolver[Ctx]]) extends DefaultAstSchemaBuilder[Ctx]

Attributes

Companion:
object
Graph
Supertypes
trait AstSchemaBuilder[Ctx]
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class SDLOrigin(document: Document) extends BaseMatOrigin

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MatOrigin
class Object
trait Matchable
class Any
case class ScalarAlias[T, ST](aliasFor: ScalarType[ST], toScalar: T => ST, fromScalar: ST => Either[Violation, T]) extends InputType[T @@ CoercedScalaResult] with OutputType[T] with LeafType with NullableType with UnmodifiedType with Named

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait LeafType
trait Named
trait OutputType[T]
trait InputType[T @@ CoercedScalaResult]
trait Type
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class ScalarType[T](name: String, description: Option[String], coerceUserInput: Any => Either[Violation, T], coerceOutput: (T, Set[MarshallerCapability]) => Any, coerceInput: Value => Either[Violation, T], complexity: Double, scalarInfo: Set[ScalarValueInfo], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends InputType[T @@ CoercedScalaResult] with OutputType[T] with LeafType with NullableType with UnmodifiedType with Named

Defines a GraphQL scalar value type.

Defines a GraphQL scalar value type.

coerceOutput is allowed to return following scala values:

  • String
  • Boolean
  • Int
  • Long
  • Float
  • Double
  • scala.BigInt
  • scala.BigDecimal
  • sangria.ast.Value (it would be converted to raw scala value before given to a marshalling API)

It may also return other values as well as long as underlying marshalling library supports them.

You can provide additional meta-information to marshalling API with scalarInfo.

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait LeafType
trait Named
trait OutputType[T]
trait InputType[T @@ CoercedScalaResult]
trait Type
class Object
trait Matchable
class Any
case class Schema[Ctx, Val](query: ObjectType[Ctx, Val], mutation: Option[ObjectType[Ctx, Val]], subscription: Option[ObjectType[Ctx, Val]], additionalTypes: List[Type & Named], description: Option[String], directives: List[Directive], validationRules: List[SchemaValidationRule], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends HasAstInfo with HasDescription

GraphQL schema description.

GraphQL schema description.

Describes the schema that is presented by a Sangria server. An instance of this type needs to be presented to Sangria's execution method, so that it knows what to execute in response to a GraphQL request that conforms to this schema.

The types contained in the schema have associated actions that Sangria's execution uses to convert a parsed GraphQL request to its data store operations.

Attributes

Ctx

Type of a context object that will be passed to each Sangria execution of a GraphQL query against this schema.

description

A description of this schema element that can be presented to clients of the GraphQL service.

query

The query

See also:
Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Schema

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Schema.type
sealed trait SchemaChange

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class TypeAdded

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class SchemaMaterializationException(message: String, cause: Throwable) extends Exception

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class SequenceLeafAction[Ctx, Val](value: Seq[LeafAction[Ctx, Val]]) extends StandardLeafAction[Ctx, Seq[Val]]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StandardLeafAction[Ctx, Seq[Val]]
trait LeafAction[Ctx, Seq[Val]]
trait Action[Ctx, Seq[Val]]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case object StandaloneOrigin extends BaseMatOrigin

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait MatOrigin
class Object
trait Matchable
class Any
Self type
sealed trait StandardLeafAction[+Ctx, +Val] extends LeafAction[Ctx, Val]

Attributes

Graph
Supertypes
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
Known subtypes
class DeferredFutureValue[Ctx, Val]
class DeferredValue[Ctx, Val]
class FutureValue[Ctx, Val]
class MappedSequenceLeafAction[Ctx, Val, NewVal]
class PartialFutureValue[Ctx, Val]
class PartialValue[Ctx, Val]
class SequenceLeafAction[Ctx, Val]
class TryValue[Ctx, Val]
class Value[Ctx, Val]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class TryValue[Ctx, Val](value: Try[Val]) extends StandardLeafAction[Ctx, Val] with ReduceAction[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ReduceAction[Ctx, Val]
trait StandardLeafAction[Ctx, Val]
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
sealed trait Type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class InterfaceType[Ctx, Val]
class UnionType[Ctx]
trait CompositeType[T]
trait ObjectLikeType[Ctx, Val]
class ObjectType[Ctx, Val]
trait InputType[T]
class EnumType[T]
class ListInputType[T]
class ScalarAlias[T, ST]
class ScalarType[T]
trait LeafType
trait OutputType[T]
class ListType[T]
class OptionType[T]
case class UnionType[Ctx](name: String, description: Option[String], typesFn: () => List[ObjectType[Ctx, _]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends OutputType[Any] with CompositeType[Any] with AbstractType with NullableType with UnmodifiedType with HasAstInfo

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait CompositeType[Any]
trait Named
trait OutputType[Any]
trait Type
class Object
trait Matchable
class Any
object UnionType

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait UnmodifiedType

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class EnumType[T]
trait ObjectLikeType[Ctx, Val]
class InterfaceType[Ctx, Val]
class ObjectType[Ctx, Val]
class ScalarAlias[T, ST]
class ScalarType[T]
class UnionType[Ctx]
class UpdateCtx[Ctx, Val](val action: LeafAction[Ctx, Val], val nextCtx: Val => Ctx) extends Action[Ctx, Val]

Attributes

Companion:
object
Graph
Supertypes
trait Action[Ctx, Val]
class Object
trait Matchable
class Any
object UpdateCtx

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait ValidOutType[-Res, +Out]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Value[Ctx, Val](value: Val) extends StandardLeafAction[Ctx, Val] with ReduceAction[Ctx, Val]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ReduceAction[Ctx, Val]
trait StandardLeafAction[Ctx, Val]
trait LeafAction[Ctx, Val]
trait Action[Ctx, Val]
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Ctx

Type of the context object that was passed to Sangria's execution method.

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Context[Ctx, Val]
trait WithTypeLookup[Ctx]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Value members

Concrete methods

def fields[Ctx, Val](fields: Field[Ctx, Val]*): List[Field[Ctx, Val]]
def interfaces[Ctx, Concrete](interfaces: PossibleInterface[Ctx, Concrete]*): List[PossibleInterface[Ctx, Concrete]]
def possibleTypes[Ctx, Abstract](objectTypes: PossibleObject[Ctx, Abstract]*): List[PossibleObject[Ctx, Abstract]]
def valueOutput[T](value: T, capabilities: Set[MarshallerCapability]): T

Implicits

Implicits

implicit val FloatType: ScalarType[Double]
implicit val IntType: ScalarType[Int]
implicit val LongType: ScalarType[Long]