Fauna csharp driver  4.2.0
Public Member Functions | Static Public Member Functions | List of all members
FaunaDB.Types.Field< T > Class Template Reference

A field extractor for a FaunaDB Value More...

Public Member Functions

Field< U > At< U > (Field< U > other)
 Creates a field extractor composed with another nested field More...
 
Field< U > To< U > ()
 Creates a field extractor that coerces its value using the type specified More...
 
Field< IReadOnlyList< U > > Collect< U > (Field< U > field)
 Creates a field extractor that collects each inner value of an array using the nested field passed, assuming the root value is an instance of ArrayV More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static Field< ValueAt (params string[] keys)
 Creates a field that extracts its value from a object path, assuming the value is an instance of ObjectV. More...
 
static Field< ValueAt (params int[] indexes)
 Creates a field that extracts its value from a array index, assuming the value is an instance of ArrayV. More...
 
static Field< T > To< T > ()
 Creates a field that coerces its value using the type specified. More...
 

Detailed Description

A field extractor for a FaunaDB Value

See Value

Definition at line 12 of file Field.cs.

Member Function Documentation

◆ At() [1/2]

static Field<Value> FaunaDB.Types.Field< T >.At ( params int[]  indexes)
static

Creates a field that extracts its value from a array index, assuming the value is an instance of ArrayV.

Parameters
indexesindexes path to the value
Returns
the field extractor

◆ At() [2/2]

static Field<Value> FaunaDB.Types.Field< T >.At ( params string[]  keys)
static

Creates a field that extracts its value from a object path, assuming the value is an instance of ObjectV.

Parameters
keyspath to the field
Returns
the field extractor

◆ At< U >()

Field<U> FaunaDB.Types.Field< T >.At< U > ( Field< U >  other)

Creates a field extractor composed with another nested field

Parameters
othernested field to compose with
Returns
a new field extractor with the nested field

◆ Collect< U >()

Field<IReadOnlyList<U> > FaunaDB.Types.Field< T >.Collect< U > ( Field< U >  field)

Creates a field extractor that collects each inner value of an array using the nested field passed, assuming the root value is an instance of ArrayV

Parameters
fieldfield to be extracted from each array's element
Returns
a new field that collects each inner value using the field passed

◆ Equals()

override bool FaunaDB.Types.Field< T >.Equals ( object  obj)

Definition at line 50 of file Field.cs.

◆ GetHashCode()

override int FaunaDB.Types.Field< T >.GetHashCode ( )

◆ To< T >()

static Field<T> FaunaDB.Types.Field< T >.To< T > ( )
static

Creates a field that coerces its value using the type specified.

Returns
the field extractor

◆ To< U >()

Field<U> FaunaDB.Types.Field< T >.To< U > ( )

Creates a field extractor that coerces its value using the type specified

Returns
a new field that coerces its value using the type specified

◆ ToString()

override string FaunaDB.Types.Field< T >.ToString ( )

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