SchemaShape

gql.SchemaShape
See theSchemaShape companion object
final case class SchemaShape[F[_], Q, M, S](query: Type[F, Q], mutation: Option[Type[F, M]], subscription: Option[Type[F, S]], outputTypes: List[OutToplevel[F, _]], inputTypes: List[InToplevel[_]], positions: List[Position[F, _]])

The underlying graph that compiles into a GraphQL schema. Provides a plethora of methods to derive information, perform validation, render, introspect and generate stub implementations.

Attributes

Companion
object
Source
SchemaShape.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addInputTypes(t: InToplevel[_]*): SchemaShape[F, Q, M, S]

Attributes

Source
SchemaShape.scala
def addOutputTypes(t: OutToplevel[F, _]*): SchemaShape[F, Q, M, S]

Attributes

Source
SchemaShape.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

Attributes

Source
SchemaShape.scala
lazy val discover: DiscoveryState[F]

Attributes

Source
SchemaShape.scala
lazy val introspection: NonEmptyList[(String, Field[F, Unit, _])]

Attributes

Source
SchemaShape.scala
lazy val render: String

Attributes

Source
SchemaShape.scala
lazy val stub: SchemaShape[Pure, _, _, _]

Attributes

Source
SchemaShape.scala
lazy val stubInputs: Map[String, InToplevel[_]]

Attributes

Source
SchemaShape.scala
lazy val validate: Chain[Problem]

Attributes

Source
SchemaShape.scala