Fauna v10 .NET/C# Driver 0.2.0-beta
 
Loading...
Searching...
No Matches
Fauna.QuerySuccess< T > Class Template Referencesealed

Represents a successful query response. More...

Inheritance diagram for Fauna.QuerySuccess< T >:
Fauna.QueryResponse

Public Member Functions

 QuerySuccess (MappingContext ctx, ISerializer< T > serializer, JsonElement json)
 Initializes a new instance of the QuerySuccess<T> class, deserializing the query response into the specified type.
 

Properties

Data [get]
 Gets the deserialized data from the query response.
 
string? StaticType [get]
 Gets the static type information from the query response, if available.
 
- Properties inherited from Fauna.QueryResponse
JsonElement RawJson [get]
 
long LastSeenTxn [get]
 Gets the last transaction seen by this query.
 
long SchemaVersion [get]
 Gets the schema version.
 
string Summary = "" [get]
 Gets a summary of the query execution.
 
Dictionary< string, string > QueryTags = new() [get]
 Gets a dictionary of query tags, providing additional context about the query.
 
QueryStats Stats [get]
 Gets the statistics related to the query execution.
 

Additional Inherited Members

- Static Public Member Functions inherited from Fauna.QueryResponse
static ? QueryResponse GetFromResponseBody< T > (MappingContext ctx, ISerializer< T > serializer, HttpStatusCode statusCode, string body)
 Asynchronously parses the HTTP response message to create a QueryResponse instance.
 
- Package Functions inherited from Fauna.QueryResponse

Detailed Description

Represents a successful query response.

Template Parameters
TThe type of data expected in the query result.

Definition at line 120 of file QueryResponse.cs.

Constructor & Destructor Documentation

◆ QuerySuccess()

Fauna.QuerySuccess< T >.QuerySuccess ( MappingContext ctx,
ISerializer< T > serializer,
JsonElement json )

Initializes a new instance of the QuerySuccess<T> class, deserializing the query response into the specified type.

Parameters
ctxThe serialization context used for deserializing the response data.
serializerA deserializer for the response data type.
jsonThe parsed JSON response body.

Definition at line 138 of file QueryResponse.cs.

Property Documentation

◆ Data

T Fauna.QuerySuccess< T >.Data
get

Gets the deserialized data from the query response.

Definition at line 125 of file QueryResponse.cs.

◆ StaticType

string? Fauna.QuerySuccess< T >.StaticType
get

Gets the static type information from the query response, if available.

Definition at line 130 of file QueryResponse.cs.


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