Comments (1)
The samples were converted from v2 SDK samples. This is a bug were the comment did not get updated for the v3 SDK. The item query samples are here: https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/CodeSamples/Queries/Program.cs . Here is how to extend the "QueryWithSqlParameters" example to set the max item count. Each FetchNextSetAsync will pull back 2 items until all the results are returned.
List<Family> results = new List<Family>();
var resultSetIterator = container.Items.CreateItemQuery<Family>(
sqlQueryDefinition: query,
partitionKey: "Anderson",
maxItemCount: 2);
while (resultSetIterator.HasMoreResults)
{
results.AddRange((await resultSetIterator.FetchNextSetAsync()));
}
from azure-cosmos-dotnet-v3.
Related Issues (20)
- NewtonSoft.Json dependency has known vulnerabilities HOT 1
- SDK is attempting to use data-plane RBAC for Create*IfNotExistsAsync HOT 6
- Change Feed Processor: Switching ChangeFeedMode should throw an exception
- OpenTelemetry net.peer.name attribute is out of date HOT 1
- Activity should have a span kind of client HOT 11
- DisableServerCertificateValidation=true results in SSL exception with linux emulator HOT 7
- [Per Partition Automatic Failover] - Enhance the `MetadataRequestThrottleRetryPolicy` to ensure its applicability at the individual `DocumentServiceRequest` level.
- Regions Onboarding - Create a Troubleshooting Guide to assist others in enabling new Azure regions within the Cosmos .NET SDK. HOT 1
- Cosmos Tests: Identify and Fix Flakey tests in `Microsoft.Azure.Cosmos.Tests`
- Linq provider uses Newtonsoft.Json configuration for property naming even when a custom CosmosSerializer is provided HOT 6
- feat(Serializers): Provide first class STJ support in a box HOT 4
- Feed iterator enters an infinite loop after a physical partition split has occurred HOT 2
- SDK reports "'ORDER BY' is not supported in subqueries" For valid query HOT 4
- Track all CosmosDB requests as dependencies with AppInsights SDK HOT 3
- Add a Default `System.Text.JSON` Implementation for `CosmosLinqSerializer`
- Linq query translator does not use the JsonPropertyName attributes HOT 5
- PartitionKey.Null produces different behavior than `null` when set in the QueryRequestOptions
- FeedIterator ReadNextAsync is getting ServiceUnavailable (503); Substatus: 20001 after upgrading cosmos sdk nuget HOT 14
- Incorrect results returned from GetItemQueryIterator HOT 7
- Custom Request Handler: When deployed to Azure, Properties nor Headers in Request Options are added to RequestMessage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-cosmos-dotnet-v3.