Represents a successful query response. More...
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 | |
| T | 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 | |
Represents a successful query response.
| T | The type of data expected in the query result. |
Definition at line 120 of file QueryResponse.cs.
| 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.
| ctx | The serialization context used for deserializing the response data. |
| serializer | A deserializer for the response data type. |
| json | The parsed JSON response body. |
Definition at line 138 of file QueryResponse.cs.
|
get |
Gets the deserialized data from the query response.
Definition at line 125 of file QueryResponse.cs.
|
get |
Gets the static type information from the query response, if available.
Definition at line 130 of file QueryResponse.cs.