Skip to content

Commit be12e95

Browse files
committed
Minor edits
1 parent da7c637 commit be12e95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

articles/cosmos-db/mongodb/feature-support-40.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ $polygon | No |
530530

531531
## Sort operations
532532

533-
When using the `findOneAndUpdate` operation, sort operations on a single field are supported but sort operations on multiple fields are not supported.
533+
When using the `findOneAndUpdate` operation with Mongo API version 4.0, sort operations on a single field and multiple fields are supported. Sort operations on multiple fields was a limitation of previous wire protocols.
534534

535535
## Indexing
536536
The API for MongoDB [supports a variety of indexes](mongodb-indexing.md) to enable sorting on multiple fields, improve query performance, and enforce uniqueness.

articles/cosmos-db/sql/migrate-dotnet-v3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The following classes have been replaced on the 3.0 SDK:
8888

8989
* `Microsoft.Azure.Documents.Resource`
9090

91-
The Microsoft.Azure.Documents.UriFactory class has been replaced by the fluent design. The fluent design builds URLs internally and allows a single `Container` object to be passed around instead of a `DocumentClient`, `DatabaseName`, and `DocumentCollection`.
91+
The Microsoft.Azure.Documents.UriFactory class has been replaced by the fluent design.
9292

9393
Because the .NET v3 SDK allows users to configure a custom serialization engine, there's no direct replacement for the `Document` type. When using Newtonsoft.Json (default serialization engine), `JObject` can be used to achieve the same functionality. When using a different serialization engine, you can use its base json document type (for example, `JsonDocument` for System.Text.Json). The recommendation is to use a C# type that reflects the schema of your items instead of relying on generic types.
9494

@@ -133,6 +133,8 @@ The following properties have been removed:
133133

134134
The .NET SDK v3 provides a fluent `CosmosClientBuilder` class that replaces the need for the SDK v2 URI Factory.
135135

136+
The fluent design builds URLs internally and allows a single `Container` object to be passed around instead of a `DocumentClient`, `DatabaseName`, and `DocumentCollection`.
137+
136138
The following example creates a new `CosmosClientBuilder` with a strong ConsistencyLevel and a list of preferred locations:
137139

138140
```csharp

0 commit comments

Comments
 (0)