Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
Static Public Member Functions | Properties | List of all members
Fauna.Core.QueryResponse Class Referenceabstract

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

Inheritance diagram for Fauna.Core.QueryResponse:
Fauna.Core.QueryFailure Fauna.Core.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]
 The raw JSON of the query response.
 
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 13 of file QueryResponse.cs.

Member Function Documentation

◆ GetFromResponseBody< T >()

static ? QueryResponse Fauna.Core.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 96 of file QueryResponse.cs.

Property Documentation

◆ LastSeenTxn

long Fauna.Core.QueryResponse.LastSeenTxn
get

Gets the last transaction seen by this query.

Definition at line 23 of file QueryResponse.cs.

◆ QueryTags

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

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

Definition at line 38 of file QueryResponse.cs.

◆ RawJson

JsonElement Fauna.Core.QueryResponse.RawJson
get

The raw JSON of the query response.

Definition at line 18 of file QueryResponse.cs.

◆ SchemaVersion

long Fauna.Core.QueryResponse.SchemaVersion
get

Gets the schema version.

Definition at line 28 of file QueryResponse.cs.

◆ Stats

QueryStats Fauna.Core.QueryResponse.Stats
get

Gets the statistics related to the query execution.

Definition at line 43 of file QueryResponse.cs.

◆ Summary

string Fauna.Core.QueryResponse.Summary = ""
get

Gets a summary of the query execution.

Definition at line 33 of file QueryResponse.cs.


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