Skip to content

Commit 3aa1a41

Browse files
add upgrade info to readme
1 parent b014ff3 commit 3aa1a41

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/DataStax.AstraDB.DataApi/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,33 @@ This C# Client Library simplifies using the DataStax Data API to manage and inte
88
dotnet add package DataStax.AstraDB.DataApi
99
```
1010

11+
# Upgrade to 2.0.1-beta
12+
13+
If you were on a previous version of the beta, please note the following breaking change. When setting various options for a Collection or Table Find command, all of the options are chained to the Find command. The DocumentFindManyOptions parameter is no longer needed (and has been removed from the SDK)
14+
15+
Instead of this:
16+
```
17+
var findOptions = new DocumentFindManyOptions<SimpleObject>()
18+
{
19+
Sort = sort,
20+
Limit = 1,
21+
Skip = 2,
22+
Projection = inclusiveProjection
23+
};
24+
var results = collection.Find(filter, findOptions).ToList();
25+
```
26+
27+
Now do this:
28+
```
29+
var results = collection.Find(filter)
30+
.Sort(sort)
31+
.Skip(2)
32+
.Limit(1)
33+
.Project(inclusiveProjection)
34+
.ToList();
35+
```
36+
37+
1138
# Quickstart
1239

1340
```

0 commit comments

Comments
 (0)