Non working example in documentation for ReadManyItemsStreamAsync in CosmosDB C# SDK
See original GitHub issueThe worked example is incomplete. There is no hint at to where response comes from.
`IReadOnlyList<(string, PartitionKey)> itemList = new List<(string, PartitionKey)> { (“Id1”, new PartitionKey(“pkValue1”)), (“Id2”, new PartitionKey(“pkValue2”)), (“Id3”, new PartitionKey(“pkValue3”)) };
using (ResponseMessage responseMessage = await this.Container.ReadManyItemsStreamAsync(itemList)) { using (Stream stream = response.ReadBodyAsync()) { //Read or do other operations with the stream using (StreamReader streamReader = new StreamReader(stream)) { string content = streamReader.ReadToEndAsync(); } } }`
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 819245a4-835a-64aa-d195-60871cacc13c
- Version Independent ID: 5cabd119-cec0-b932-0311-cb739ac51939
- Content: Container.ReadManyItemsStreamAsync(IReadOnlyList<ValueTuple<String,PartitionKey>>, ReadManyRequestOptions, CancellationToken) Method (Microsoft.Azure.Cosmos) - Azure for .NET Developers
- Content Source: xml/Microsoft.Azure.Cosmos/Container.xml
- Service: cosmos-db
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Container.ReadManyItemsStreamAsync Method
Reads multiple items from a container using Id and PartitionKey values.
Read more >Does the Cosmos .NET SDK ReadManyItemsStreamAsync ...
So no, there is no limit, the internal implementation is the one taking your input and splitting it into different requests as needed, ......
Read more >Troubleshoot an application using the Azure Cosmos DB ...
Run a script to create menu-driven options to insert and delete documents. Time to insert and delete documents. Conclusion. Troubleshoot an application using ......
Read more >Preventing Headaches with Cosmos Document IDs
The following simple tip regarding Cosmos DB's document identifier property may help you avoid creating a hard-to-find bug in your code.
Read more >azcosmos
Azure Cosmos DB SDK for Go. Introduction. This client library enables client applications to connect to Azure Cosmos DB via the SQL API....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you 👍
Hi @TwoPatient. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “
/unresolve
” to remove the “issue-addressed” label and continue the conversation.