We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b86e1c9 commit 2530393Copy full SHA for 2530393
1 file changed
samples/FSharp.CosmosDb.Samples/Program.fs
@@ -50,7 +50,7 @@ let updateFamily conn id pk =
50
51
let deleteFamily conn id pk =
52
conn
53
- |> Cosmos.delete<Family> id pk
+ |> Cosmos.deleteItem<Family> id pk
54
|> Cosmos.execAsync
55
56
[<EntryPoint>]
@@ -131,6 +131,13 @@ let main argv =
131
|> AsyncSeq.map (fun f -> { f with LastName = "Powellz" })
132
|> AsyncSeq.map (fun f -> conn |> Cosmos.replace f |> Cosmos.execAsync)
133
|> AsyncSeq.iter (fun f -> printfn "Replaced: %A" f)
134
+
135
+ do!
136
+ conn
137
+ |> Cosmos.container "Family"
138
+ |> Cosmos.deleteContainer
139
+ |> Cosmos.execAsync
140
+ |> Async.Ignore
141
142
return 0 // return an integer exit code
143
}
0 commit comments