Node

sangria.relay.Node$
See theNode companion trait
object Node

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Node.type

Members list

Type members

Classlikes

object Args

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Args.type

Value members

Concrete methods

def definition[Ctx, Val, Res](resolve: (GlobalId, Context[Ctx, Val]) => LeafAction[Ctx, Option[Res]], possibleTypes: => List[PossibleNodeObject[Ctx, Node]], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) => Double]): NodeDefinition[Ctx, Val, Res]
def definitionById[Ctx, Val, Res](resolve: (String, Context[Ctx, Val]) => LeafAction[Ctx, Option[Res]], possibleTypes: => List[PossibleNodeObject[Ctx, Node]], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) => Double]): NodeDefinition[Ctx, Val, Res]
def globalIdField[Ctx, Val](implicit ev: IdentifiableNode[Ctx, Val]): Field[Ctx, Val]
def globalIdField[Ctx, Val](typeName: Option[String], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) => Double])(implicit ev: IdentifiableNode[Ctx, Val]): Field[Ctx, Val]
def pluralIdentifyingRootField[Ctx, Val, Res, Out, T](fieldName: String, fieldType: OutputType[Out], argName: String, argType: InputType[T], resolveSingleInput: (T, Context[Ctx, Val]) => Option[Out], description: Option[String], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) => Double])(implicit res: ArgumentType[T], ev1: ValidOutType[Res, Out], fromInput: FromInput[T]): Field[Ctx, Val]
def pluralIdentifyingRootFieldFut[Ctx, Val, Res, Out, T](fieldName: String, fieldType: OutputType[Out], argName: String, argType: InputType[T], resolveSingleInput: (T, Context[Ctx, Val]) => Future[Option[Out]], description: Option[String], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) => Double])(implicit res: ArgumentType[T], ev1: ValidOutType[Res, Out], execCtx: ExecutionContext, fromInput: FromInput[T]): Field[Ctx, Val]
def possibleNodeTypes[Ctx, Abstract](objectTypes: PossibleNodeObject[Ctx, Abstract]*): List[PossibleNodeObject[Ctx, Abstract]]

Concrete fields

val GlobalIdFieldName: String

Implicits

Implicits

implicit def identifiableNodeType[Ctx, T](implicit ev: IdentifiableNode[Ctx, T]): PossibleType[Node, T]