InterfaceType

sangria.schema.InterfaceType
See theInterfaceType companion object
case class InterfaceType[Ctx, Val](name: String, description: Option[String], fieldsFn: () => List[Field[Ctx, Val]], interfaces: List[InterfaceType[Ctx, _]], manualPossibleTypes: () => List[ObjectType[_, _]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends ObjectLikeType[Ctx, Val], AbstractType

Value parameters

description

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

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AbstractType
trait ObjectLikeType[Ctx, Val]
trait HasAstInfo
trait NullableType
trait CompositeType[Val]
trait Named
trait OutputType[Val]
trait Type
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def rename(newName: String): InterfaceType.this.type
def withDirective(directive: Directive): InterfaceType[Ctx, Val]
def withDirectives(directives: Directive*): InterfaceType[Ctx, Val]
def withPossibleTypes(possible: PossibleObject[Ctx, Val]*): InterfaceType[Ctx, Val]
def withPossibleTypes(possible: () => List[PossibleObject[Ctx, Val]]): InterfaceType[Ctx, Val]

Inherited methods

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

Attributes

Inherited from:
ObjectLikeType

Attributes

Inherited from:
Type

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
ObjectLikeType
def typeOf[Ctx](value: Any, schema: Schema[Ctx, _]): Option[ObjectType[Ctx, _]]

Attributes

Inherited from:
AbstractType

Inherited fields

lazy val allInterfaces: Vector[InterfaceType[Ctx, _]]

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
ObjectLikeType