QueryAstResultMarshaller

sangria.marshalling.QueryAstResultMarshaller
class QueryAstResultMarshaller extends ResultMarshaller

Attributes

Graph
Supertypes
trait ResultMarshaller
class Object
trait Matchable
class Any

Members list

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 nullNode: Node
def renderCompact(node: Node): String
def renderPretty(node: Node): String
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).

Value parameters

value

coerced scalar value

Attributes

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