Schema

sangria.schema.Schema$
See theSchema companion class
object Schema

Attributes

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

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def buildDefinitions[Ctx](document: Document, builder: AstSchemaBuilder[Ctx]): Vector[Named]
def buildFromAst(document: Document): Schema[Any, Any]
def buildFromAst[Ctx](document: Document, builder: AstSchemaBuilder[Ctx]): Schema[Ctx, Any]
def buildFromIntrospection[T : InputUnmarshaller](introspectionResult: T): Schema[Any, Any]

Build a Schema for use by client tools.

Build a Schema for use by client tools.

Given the result of a client running the introspection query, creates and returns a Schema instance which can be then used with all sangria tools, but cannot be used to execute a query, as introspection does not represent the "resolver", "parse" or "serialize" functions or any other server-internal mechanisms.

Attributes

introspectionResult

the result of introspection query

def buildFromIntrospection[Ctx, T : InputUnmarshaller](introspectionResult: T, builder: IntrospectionSchemaBuilder[Ctx]): Schema[Ctx, Any]

Build a Schema for use by client tools.

Build a Schema for use by client tools.

Given the result of a client running the introspection query, creates and returns a Schema instance which can be then used with all sangria tools, but cannot be used to execute a query, as introspection does not represent the "resolver", "parse" or "serialize" functions or any other server-internal mechanisms.

Attributes

introspectionResult

the result of introspection query

def buildStubFromAst(document: Document): Schema[Any, Any]
def buildStubFromAst[Ctx](document: Document, builder: AstSchemaBuilder[Ctx]): Schema[Ctx, Any]
def isBuiltInDirective(directiveName: String): Boolean
def isBuiltInType(typeName: String): Boolean