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 Serializabletrait Producttrait Equalstrait HasAstInfotrait UnmodifiedTypetrait NullableTypetrait CompositeType[Val]trait Namedtrait HasDescriptiontrait OutputType[Val]trait Typeclass Objecttrait Matchableclass Any