Fauna csharp driver  4.2.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Properties | List of all members
FaunaDB.Types.ObjectV Class Reference

Represents an Object value in the FaunaDB query language. Objects are polymorphic dictionaries. More...

Inheritance diagram for FaunaDB.Types.ObjectV:
FaunaDB.Types.Value FaunaDB.Query.Expr

Public Member Functions

Value GetOrNull (string key)
 If there is no value at the given key, just return null. Otherwise, return the value. More...
 
override bool Equals (Expr v)
 
override string ToString ()
 
- Public Member Functions inherited from FaunaDB.Types.Value
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...
 
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)
 
override int GetHashCode ()
 

Static Public Member Functions

static ObjectV With ()
 
static ObjectV With (IReadOnlyDictionary< string, Value > values)
 
static ObjectV With (string key1, Value value1)
 
static ObjectV With (string key1, Value value1, string key2, Value value2)
 
static ObjectV With (string key1, Value value1, string key2, Value value2, string key3, Value value3)
 
static ObjectV With (string key1, Value value1, string key2, Value value2, string key3, Value value3, string key4, Value value4)
 
static ObjectV With (string key1, Value value1, string key2, Value value2, string key3, Value value3, string key4, Value value4, string key5, Value value5)
 
static ObjectV With (string key1, Value value1, string key2, Value value2, string key3, Value value3, string key4, Value value4, string key5, Value value5, string key6, Value value6)
 
static ObjectV With (string key1, Value value1, string key2, Value value2, string key3, Value value3, string key4, Value value4, string key5, Value value5, string key6, Value value6, string key7, Value value7)
 
- Static Public Member Functions inherited from FaunaDB.Types.Value
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)
 

Static Public Attributes

static readonly ObjectV Empty
 

Protected Member Functions

override int HashCode ()
 

Properties

IReadOnlyDictionary< string, ValueValue [get]
 
Value this[string key] [get]
 
Exceptions
KeyNotFoundException
More...
 

Detailed Description

Represents an Object value in the FaunaDB query language. Objects are polymorphic dictionaries.

Definition at line 15 of file ObjectV.cs.

Member Function Documentation

◆ Equals()

override bool FaunaDB.Types.ObjectV.Equals ( Expr  v)
virtual

Implements FaunaDB.Query.Expr.

Definition at line 69 of file ObjectV.cs.

◆ GetOrNull()

Value FaunaDB.Types.ObjectV.GetOrNull ( string  key)

If there is no value at the given key, just return null. Otherwise, return the value.

Definition at line 53 of file ObjectV.cs.

◆ HashCode()

override int FaunaDB.Types.ObjectV.HashCode ( )
protectedvirtual

Implements FaunaDB.Query.Expr.

◆ ToString()

override string FaunaDB.Types.ObjectV.ToString ( )

Definition at line 78 of file ObjectV.cs.

◆ With() [1/9]

static ObjectV FaunaDB.Types.ObjectV.With ( )
static

◆ With() [2/9]

static ObjectV FaunaDB.Types.ObjectV.With ( IReadOnlyDictionary< string, Value values)
static

◆ With() [3/9]

static ObjectV FaunaDB.Types.ObjectV.With ( string  key1,
Value  value1 
)
static

◆ With() [4/9]

static ObjectV FaunaDB.Types.ObjectV.With ( string  key1,
Value  value1,
string  key2,
Value  value2 
)
static

◆ With() [5/9]

static ObjectV FaunaDB.Types.ObjectV.With ( string  key1,
Value  value1,
string  key2,
Value  value2,
string  key3,
Value  value3 
)
static

◆ With() [6/9]

static ObjectV FaunaDB.Types.ObjectV.With ( string  key1,
Value  value1,
string  key2,
Value  value2,
string  key3,
Value  value3,
string  key4,
Value  value4 
)
static

◆ With() [7/9]

static ObjectV FaunaDB.Types.ObjectV.With ( string  key1,
Value  value1,
string  key2,
Value  value2,
string  key3,
Value  value3,
string  key4,
Value  value4,
string  key5,
Value  value5 
)
static

◆ With() [8/9]

static ObjectV FaunaDB.Types.ObjectV.With ( string  key1,
Value  value1,
string  key2,
Value  value2,
string  key3,
Value  value3,
string  key4,
Value  value4,
string  key5,
Value  value5,
string  key6,
Value  value6 
)
static

◆ With() [9/9]

static ObjectV FaunaDB.Types.ObjectV.With ( string  key1,
Value  value1,
string  key2,
Value  value2,
string  key3,
Value  value3,
string  key4,
Value  value4,
string  key5,
Value  value5,
string  key6,
Value  value6,
string  key7,
Value  value7 
)
static

Member Data Documentation

◆ Empty

readonly ObjectV FaunaDB.Types.ObjectV.Empty
static
Initial value:
=
new ObjectV(ImmutableDictionary.Empty<string, Value>())
IReadOnlyDictionary< string, Value > Value
Definition: ObjectV.cs:21

Definition at line 18 of file ObjectV.cs.

Property Documentation

◆ this[string key]

Value FaunaDB.Types.ObjectV.this[string key]
get

Exceptions
KeyNotFoundException

Definition at line 47 of file ObjectV.cs.

◆ Value

IReadOnlyDictionary<string, Value> FaunaDB.Types.ObjectV.Value
get

Definition at line 21 of file ObjectV.cs.


The documentation for this class was generated from the following file: