Reputation: 21
I am using the latest .NET Core client library (Microsoft.Azure.Cosmos) for CosmosDB and am trying to use it with the default consistency level of Session. I can successfully return the session token from updates, and can use that to retrieve a single item using ReadItemAsync, passing in the options with the SessionToken.
The way that seems to be preferred by examples to retrieve multiple documents is to use GetItemQueryIterator, however I cannot see a way to pass the session token into this. There does not appear to be a similar SessionToken property on the QueryRequestOptions class.
Is there a different method I have overlooked for retrieving multiple documents that will take the session token, or should I be doing this a completely different way?
Upvotes: 1
Views: 256
Reputation: 21
This was a missing property on QueryRequestOptions, but after raising this issue and a pull request to fix it, it has now been added to V3.5.0.
Upvotes: 1