sangria.schema.Schema
See theSchema companion object
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, HasDescription
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.
Type parameters
- Ctx
-
Type of a context object that will be passed to each Sangria execution of a GraphQL query against this schema.
Value parameters
- description
-
A description of this schema element that can be presented to clients of the GraphQL service.
- query
-
The query
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HasDescriptiontrait HasAstInfoclass Objecttrait Matchableclass Any
Members list
In this article