trait Schema extends AnyRef
Representation of a GraphQL schema
A Schema
is a collection of type and directive declarations.
- Alphabetic
- By Inheritance
- Schema
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def TypeRef(tpnme: String): TypeRef
Alias for
ref
for use within constructors of concreteSchema
values.Alias for
ref
for use within constructors of concreteSchema
values.- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def defaultSchemaType: NamedType
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 thisSchema
a definition of the form,type Schema { query: Query! mutation: Mutation subscription: Subscription }
is used.
- def definition(name: String): Option[NamedType]
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. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exhaustive(tp: Type, branches: List[Type]): Boolean
Are the supplied alternatives exhaustive for
tp
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRootType(tpe: Type): Boolean
True if the supplied type is one of the Query, Mutation or Subscription root types, false otherwise
- def mutationType: Option[NamedType]
The type of mutations defined by this
Schema
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def queryType: NamedType
The type of queries defined by this
Schema
- def ref(tp: Type): Option[TypeRef]
- 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
.TypeRef
s refer to types defined in this schema by name and hence can be used as part of mutually recursive type definitions. - def schemaType: NamedType
The schema type.
The schema type.
Either the explicitly defined type named
"Schema"
or the default schema type if not defined. - def subscriptionType: Option[NamedType]
The type of subscriptions defined by this
Schema
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Schema → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])