Field

sangria.schema.Field
See theField companion object
case class Field[Ctx, Val](name: String, fieldType: OutputType[_], description: Option[String], arguments: List[Argument[_]], resolve: Context[Ctx, Val] => Action[Ctx, _], deprecationReason: Option[String], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) => Double], manualPossibleTypes: () => List[ObjectType[_, _]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends Named with HasArguments with HasDeprecation with HasAstInfo

Attributes

description

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

resolve

A function that maps the context of this field definition to an action that retrieves the field's data.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Named
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

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

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product