Fauna v10 .NET/C# Driver 0.2.0-beta
 
Loading...
Searching...
No Matches
Fauna.QueryResponse Class Referenceabstract

Represents the response from a query executed. More...

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

Static Public Member Functions

static ? QueryResponse GetFromResponseBody< T > (MappingContext ctx, ISerializer< T > serializer, HttpStatusCode statusCode, string body)
 Asynchronously parses the HTTP response message to create a QueryResponse instance.
 

Properties

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.
 

Detailed Description

Represents the response from a query executed.

Definition at line 12 of file QueryResponse.cs.

Member Function Documentation

◆ GetFromResponseBody< T >()

static ? QueryResponse Fauna.QueryResponse.GetFromResponseBody< T > ( MappingContext ctx,
ISerializer< T > serializer,
HttpStatusCode statusCode,
string body )
static

Asynchronously parses the HTTP response message to create a QueryResponse instance.

Template Parameters
TThe expected data type of the query response.
Parameters
ctxSerialization context for handling response data.
serializerA serializer for the success data type.
statusCodeThe HTTP status code.
bodyThe response body.
Returns
A Task that resolves to a QueryResponse instance.

Definition at line 92 of file QueryResponse.cs.

Property Documentation

◆ LastSeenTxn

long Fauna.QueryResponse.LastSeenTxn
get

Gets the last transaction seen by this query.

Definition at line 19 of file QueryResponse.cs.

◆ QueryTags

Dictionary<string, string> Fauna.QueryResponse.QueryTags = new()
get

Gets a dictionary of query tags, providing additional context about the query.

Definition at line 34 of file QueryResponse.cs.

◆ RawJson

JsonElement Fauna.QueryResponse.RawJson
get

Definition at line 14 of file QueryResponse.cs.

◆ SchemaVersion

long Fauna.QueryResponse.SchemaVersion
get

Gets the schema version.

Definition at line 24 of file QueryResponse.cs.

◆ Stats

QueryStats Fauna.QueryResponse.Stats
get

Gets the statistics related to the query execution.

Definition at line 39 of file QueryResponse.cs.

◆ Summary

string Fauna.QueryResponse.Summary = ""
get

Gets a summary of the query execution.

Definition at line 29 of file QueryResponse.cs.


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