Skip to content

Commit 0151379

Browse files
committed
fix: count query
1 parent 1dc7699 commit 0151379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cosmos/Cosmos.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace FSharp.Azure.Cosmos
1+
namespace FSharp.Azure.Cosmos
22

33
open System
44
open System.Net
@@ -96,7 +96,7 @@ module Operations =
9696
raise (ArgumentNullException (nameof triggers))
9797
options.PostTriggers <- [| yield! options.PostTriggers; yield! triggers |]
9898

99-
let internal countQuery = QueryDefinition ("SELECT VALUE COUNT(1)")
99+
let internal countQuery = QueryDefinition ("SELECT VALUE COUNT(1) FROM c")
100100
let internal existsQuery = QueryDefinition ("SELECT VALUE COUNT(1) FROM item WHERE item.id = @Id")
101101
let internal getExistsQuery id = existsQuery.WithParameter ("@Id", id)
102102

0 commit comments

Comments
 (0)