QueryAstInputUnmarshaller

sangria.marshalling.QueryAstInputUnmarshaller
class QueryAstInputUnmarshaller extends InputUnmarshaller[Value]

Attributes

Graph
Supertypes
trait InputUnmarshaller[Value]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def getListValue(node: Value): Seq[Value]
def getMapValue(node: Value, key: String): Option[Value]
def getRootMapValue(node: Value, key: String): Option[Value]
def getScalaScalarValue(node: Value): Any

Extracts raw scalar value. Only the following scala values are allowed to be returned:

Extracts raw scalar value. Only the following scala values are allowed to be returned:

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

Attributes

Returns

Only normal scala scalar values

def getScalarValue(node: Value): Any

Attributes

Returns

Scalar values are Scala String, Int, Double, Boolean and Enum values defined in the schema as well as ast nodes if appropriate. TODO: find better approach. Ideally the should be only one getScalarValue method witch returns normal scala values

def isDefined(node: Value): Boolean
def isEnumNode(node: Value): Boolean
def isListNode(node: Value): Boolean
def isMapNode(node: Value): Boolean
def isScalarNode(node: Value): Boolean
def render(node: Value): String