Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Fauna.Core.QuerySuccess< T > Class Template Referencesealed

Represents a successful query response. More...

Inheritance diagram for Fauna.Core.QuerySuccess< T >:
Fauna.Core.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.Core.QueryResponse
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.
 

Additional Inherited Members

- Static Public Member Functions inherited from Fauna.Core.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.
 

Detailed Description

Represents a successful query response.

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

Definition at line 124 of file QueryResponse.cs.

Constructor & Destructor Documentation

◆ QuerySuccess()

Fauna.Core.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 142 of file QueryResponse.cs.

Property Documentation

◆ Data

T Fauna.Core.QuerySuccess< T >.Data
get

Gets the deserialized data from the query response.

Definition at line 129 of file QueryResponse.cs.

◆ StaticType

string? Fauna.Core.QuerySuccess< T >.StaticType
get

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

Definition at line 134 of file QueryResponse.cs.


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