Ditto 4.7.0
Loading...
Searching...
No Matches
Protected Member Functions | Properties | List of all members
DittoSDK.DittoQueryResult Class Reference

Represents the result of executing a DQL query. More...

Inheritance diagram for DittoSDK.DittoQueryResult:

Protected Member Functions

override void Dispose (bool disposing)
 

Properties

List< DittoQueryResultItemItems [get]
 Gets the individual items matching a DQL query.
 
List< DittoDocumentIdMutatedDocumentIds [get]
 Gets the IDs of documents that were mutated locally by a mutating DQL query passed to DittoStore.ExecuteAsync. Empty array if no documents have been mutated.
 

Detailed Description

Represents the result of executing a DQL query.

Note
More info such as metrics will be provided in the near future.

Property Documentation

◆ MutatedDocumentIds

List<DittoDocumentId> DittoSDK.DittoQueryResult.MutatedDocumentIds
get

Gets the IDs of documents that were mutated locally by a mutating DQL query passed to DittoStore.ExecuteAsync. Empty array if no documents have been mutated.

Note
A DittoStoreObserver can only be registered with a SELECT query, which is non-mutating, and thus the query result passed to the storeObservationHandler always returns an empty array in that case.
Attention
The returned document IDs are not cached, make sure to call this method once and keep the return value for as long as needed.