sealed
trait
Value extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
final
def
apply[T](field: Field[T]): Result[T]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
collect[T](field: Field[T]): Result[Seq[T]]
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
to[T](implicit arg0: Decoder[T]): Result[T]
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
A FaunaDB value.
Reference: FaunaDB Values
Overview
Value is an algebraic data type that represents the value of possible FaunaDB query responses. While it is possible to extract data out of a Value object using pattern matching, the faunadb.values.Field lets you create more complex and reusable data extractors.
Extraction can be composed:
If a value may be an array, or may contain an array, the array's elements may be cast using collect: