You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,22 @@ let insertUsers data =
38
38
|> Cosmos.execAsync
39
39
```
40
40
41
+
### Upsert
42
+
43
+
```fsharp
44
+
open FSharp.CosmosDb
45
+
46
+
let connStr = "..."
47
+
48
+
let insertUsers data =
49
+
connStr
50
+
|> Cosmos.fromConnectionString
51
+
|> Cosmos.database "UserDb"
52
+
|> Cosmos.container "UserContainer"
53
+
|> Cosmos.upsertMany<User> data
54
+
|> Cosmos.execAsync
55
+
```
56
+
41
57
### Update
42
58
43
59
```fsharp
@@ -173,3 +189,4 @@ Add the following settings (globally or in the workspace):
173
189
174
190
- Zaid Ajaj for the [Npgsql Analyzer](https://github.com/Zaid-Ajaj/Npgsql.FSharp.Analyzer). Without this I wouldn't have been able to work out how to do it (and there's some code lifted from there)
175
191
-[Krzysztof Cieślak](https://twitter.com/k_cieslak) for the amazing Ionide plugin
192
+
-[Isaac Abraham](https://twitter.com/isaac_abraham) for helping fix the parser
0 commit comments