Represents any scalar or non-scalar value in the FaunaDB query language. FaunaDB value types consist of all of the JSON value types, as well as the FaunaDB-specific types, RefV and SetRefV. More...
Public Member Functions | |
Value | At (params string[] keys) |
Navigate through object's keys, assuming value is an instance of ObjectV. More... | |
Value | At (params int[] indexes) |
Navigate through array's indexes, assuming value is an instance of ArrayV. More... | |
IResult< T > | To< T > () |
Attempts to coerce this value to given type T specified. More... | |
IReadOnlyList< T > | Collect< T > (Field< T > field) |
Loop through this node collecting the Field passed, assuming the node is an instance of ArrayV More... | |
T | Get< T > (Field< T > field) |
Extract a Field from this node More... | |
IOption< T > | GetOption< T > (Field< T > field) |
Attempts to extact a Field from this node More... | |
Public Member Functions inherited from FaunaDB.Query.Expr | |
override bool | Equals (object obj) |
abstract bool | Equals (Expr v) |
override int | GetHashCode () |
Static Public Member Functions | |
static implicit | operator Value (bool b) |
static implicit | operator Value (double d) |
static implicit | operator Value (long l) |
static implicit | operator Value (int i) |
static implicit | operator Value (string s) |
static implicit | operator Value (DateTime dt) |
static implicit | operator Value (DateTimeOffset dt) |
static implicit | operator Value (byte[] bytes) |
static | operator bool (Value v) |
static | operator double (Value v) |
static | operator long (Value v) |
static | operator string (Value v) |
static | operator DateTime (Value v) |
static | operator DateTimeOffset (Value v) |
Static Public Member Functions inherited from FaunaDB.Query.Expr | |
static bool | operator== (Expr a, Expr b) |
static bool | operator!= (Expr a, Expr b) |
static implicit | operator Expr (bool b) |
static implicit | operator Expr (double d) |
static implicit | operator Expr (long l) |
static implicit | operator Expr (int i) |
static implicit | operator Expr (string s) |
static implicit | operator Expr (DateTime dt) |
static implicit | operator Expr (DateTimeOffset dt) |
static implicit | operator Expr (Dictionary< string, Expr > dict) |
static implicit | operator Expr (byte[] bytes) |
static implicit | operator Expr (ActionType action) |
static implicit | operator Expr (TimeUnit unit) |
static implicit | operator Expr (Normalizer normalizer) |
static | operator bool (Expr v) |
static | operator double (Expr v) |
static | operator long (Expr v) |
static | operator string (Expr v) |
static | operator DateTime (Expr v) |
static | operator DateTimeOffset (Expr v) |
static | operator ActionType (Expr v) |
static | operator TimeUnit (Expr unit) |
static | operator Normalizer (Expr normalizer) |
Additional Inherited Members | |
Protected Member Functions inherited from FaunaDB.Query.Expr | |
abstract int | HashCode () |
Represents any scalar or non-scalar value in the FaunaDB query language. FaunaDB value types consist of all of the JSON value types, as well as the FaunaDB-specific types, RefV and SetRefV.
Scalar values are LongV, StringV, DoubleV, BooleanV, NullV, RefV, and SetRefV.
Non-scalar values are ObjectV and ArrayV.
This interface itself does not have any directly accessible data. It must first be coerced into a type before its data can be accessed.
Consider the Value node modeling the root of the tree:
The result tree can be accessed using:
The interface also has helpers to transverse values without Field references:
See Field
Value FaunaDB.Types.Value.At | ( | params int[] | indexes | ) |
Value FaunaDB.Types.Value.At | ( | params string[] | keys | ) |
IReadOnlyList<T> FaunaDB.Types.Value.Collect< T > | ( | Field< T > | field | ) |
Loop through this node collecting the Field passed, assuming the node is an instance of ArrayV
See Field
Consider the Value node modeling the root of the tree:
The result tree can be accessed using:
field | field to extract from each array value |
T FaunaDB.Types.Value.Get< T > | ( | Field< T > | field | ) |
|
explicitstatic |
|
explicitstatic |
|
explicitstatic |
|
explicitstatic |
|
explicitstatic |
|
explicitstatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
IResult<T> FaunaDB.Types.Value.To< T > | ( | ) |
Attempts to coerce this value to given type T specified.
T | The type name in which this value shoulbe be decoded |