Schema

trait Schema

Representation of a GraphQL schema

A Schema is a collection of type and directive declarations.

Companion:
object
Source:
schema.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

The directives defined by this Schema.

The directives defined by this Schema.

Source:
schema.scala
def pos: SourcePos

The types defined by this Schema.

The types defined by this Schema.

Source:
schema.scala

Concrete methods

The default type of a GraphQL schema

The default type of a GraphQL schema

Unless a type named "Schema" is explicitly defined as part of this Schema a definition of the form,

type Schema {
 query: Query!
 mutation: Mutation
 subscription: Subscription
}

is used.

Source:
schema.scala

Look up by name a type defined in this Schema.

Look up by name a type defined in this Schema.

Yields the type, if defined, None otherwise.

Source:
schema.scala
def exhaustive(tp: Type, branches: List[Type]): Boolean

Are the supplied alternatives exhaustive for tp

Are the supplied alternatives exhaustive for tp

Source:
schema.scala

True if the supplied type is one of the Query, Mutation or Subscription root types, false otherwise

True if the supplied type is one of the Query, Mutation or Subscription root types, false otherwise

Source:
schema.scala

The type of mutations defined by this Schema

The type of mutations defined by this Schema

Source:
schema.scala

The type of queries defined by this Schema

The type of queries defined by this Schema

Source:
schema.scala
def ref(tpnme: String): TypeRef

A reference by name to a type defined by this Schema.

A reference by name to a type defined by this Schema.

TypeRefs refer to types defined in this schema by name and hence can be used as part of mutually recursive type definitions.

Source:
schema.scala

The schema type.

The schema type.

Either the explicitly defined type named "Schema" or the default schema type if not defined.

Source:
schema.scala

The type of subscriptions defined by this Schema

The type of subscriptions defined by this Schema

Source:
schema.scala
override def toString: String
Definition Classes
Any
Source:
schema.scala