ObjectType

sangria.schema.ObjectType
See theObjectType companion object
case class ObjectType[Ctx, Val](name: String, description: Option[String], fieldsFn: () => List[Field[Ctx, Val]], interfaces: List[InterfaceType[Ctx, _]], instanceCheck: (Any, Class[_], ObjectType[Ctx, Val]) => Boolean, astDirectives: Vector[Directive], astNodes: Vector[AstNode])(implicit evidence$1: ClassTag[Val]) extends ObjectLikeType[Ctx, Val]

GraphQL schema object description.

Describes a type of object in a GraphQL schema that is presented by a Sangria server. Objects of the type contain fields and can be viewed as simply a container of fields—internal nodes in the tree of data that a GraphQL request returns. The data store operations take place at the level of the fields that are leaf nodes in that tree.

Constructing the internal nodes of a schema consists mostly of constructing instances of this class.

Attributes

description

A description of this schema element that can be presented to clients of the GraphQL service.

See also:
Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ObjectLikeType[Ctx, Val]
trait CompositeType[Val]
trait Named
trait OutputType[Val]
trait Type
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def isInstanceOf(value: Any): Boolean
Implicitly added by acceptUnitCtx
def isInstanceOf(value: Any): Boolean
def rename(newName: String): ObjectType.this.type
Implicitly added by acceptUnitCtx
def rename(newName: String): ObjectType.this.type
def withDirective(directive: Directive): ObjectType[Ctx, Val]
Implicitly added by acceptUnitCtx
def withDirective(directive: Directive): ObjectType[Ctx, Val]
def withDirectives(directives: Directive*): ObjectType[Ctx, Val]
Implicitly added by acceptUnitCtx
def withDirectives(directives: Directive*): ObjectType[Ctx, Val]
def withInstanceCheck(fn: (Any, Class[_], ObjectType[Ctx, Val]) => Boolean): ObjectType[Ctx, Val]
Implicitly added by acceptUnitCtx
def withInstanceCheck(fn: (Any, Class[_], ObjectType[Ctx, Val]) => Boolean): ObjectType[Ctx, Val]

Inherited methods

def getField(schema: Schema[_, _], fieldName: String): Vector[Field[Ctx, _]]
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
ObjectLikeType
def getField(schema: Schema[_, _], fieldName: String): Vector[Field[Ctx, _]]

Attributes

Inherited from:
ObjectLikeType
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
Type

Attributes

Inherited from:
Type
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
ObjectLikeType

Attributes

Inherited from:
ObjectLikeType

Concrete fields

lazy val valClass: Class[_]
Implicitly added by acceptUnitCtx
lazy val valClass: Class[_]

Inherited fields

Implicitly added by acceptUnitCtx

Attributes

Inherited from:
ObjectLikeType

Attributes

Inherited from:
ObjectLikeType
lazy val fields: Vector[Field[Ctx, _]]
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
ObjectLikeType
lazy val fields: Vector[Field[Ctx, _]]

Attributes

Inherited from:
ObjectLikeType
lazy val fieldsByName: Map[String, Vector[Field[Ctx, _]]]
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
ObjectLikeType
lazy val fieldsByName: Map[String, Vector[Field[Ctx, _]]]

Attributes

Inherited from:
ObjectLikeType
lazy val ownFields: Vector[Field[Ctx, Val]]
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
ObjectLikeType
lazy val ownFields: Vector[Field[Ctx, Val]]

Attributes

Inherited from:
ObjectLikeType
lazy val uniqueFields: Vector[Field[Ctx, _]]
Implicitly added by acceptUnitCtx

Attributes

Inherited from:
ObjectLikeType
lazy val uniqueFields: Vector[Field[Ctx, _]]

Attributes

Inherited from:
ObjectLikeType