Description
Following the basic pattern for MutationToken support with QueryAsync does not seem to work, and instead produces System.ArgumentException: ReadResult does not contain valid MutationToken.
var upsertResult = await collection.UpsertAsync("airline_pca", new { callsign = "PLAYGROUND-AIR", type = "airline", country="United States", iata="Q0", icao="PCA", id=8675309, name="Playground Air" }); |
|
// create mutation state from mutation results
|
var state = MutationState.From(upsertResult);
|
|
// use mutation state with query option
|
var result = await cluster.QueryAsync<dynamic>(
|
"SELECT x.* FROM `travel-sample` WHERE icao=$icao", |
options => options.Parameter("icao", "PCA").ConsistentWith(state) |
);
|
|
Attachments
Issue Links
- blocks
-
NCBC-2033 3.0 API Query snippets in concept doc
- Resolved