QueryAstResultMarshaller

sangria.marshalling.QueryAstResultMarshaller
class QueryAstResultMarshaller extends ResultMarshaller

Attributes

Graph
Supertypes
trait ResultMarshaller
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

type MapBuilder = ArrayMapBuilder[Node]
type Node = Value

Value members

Concrete methods

def addMapNodeElem(builder: MapBuilder, key: String, value: Node, optional: Boolean): MapBuilder
def arrayNode(values: Vector[Node]): Node
def enumNode(value: String, typeName: String): Node
def mapNode(builder: MapBuilder): Node
def mapNode(keyValues: Seq[(String, Node)]): Node
def scalarNode(value: Any, typeName: String, info: Set[ScalarValueInfo]): Node

Marshals a coerced scalar value

Marshals a coerced scalar value

Following scala types must be supported:

  • String
  • Boolean
  • Int
  • Long
  • Float
  • Double
  • scala.BigInt
  • scala.BigDecimal

Implementation may also support additional scala types if underlying data format supports them (like Dates, or BLOBs).

Attributes

value

coerced scalar value

Returns:

marshaled node

Inherited methods

def capabilities: Set[MarshallerCapability]

Attributes

Inherited from:
ResultMarshaller
def mapAndMarshal[T](seq: Seq[T], fn: T => Node): Node

Attributes

Inherited from:
ResultMarshaller