IntrospectionSchemaMaterializer

sangria.schema.IntrospectionSchemaMaterializer$
See theIntrospectionSchemaMaterializer companion class

Attributes

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

Members list

Concise view

Value members

Concrete methods

def buildSchema[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 buildSchema[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

builder

custom schema construction logic. By default MaterializedSchemaException would be thrown from a resolve function.

introspectionResult

the result of introspection query