v0.0.637 allow calling coll.Paginat() with limit=0 (to get only counts)
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m32s

This commit is contained in:
2026-05-06 16:11:01 +02:00
parent 02d6894ec6
commit b3131e3ba6
6 changed files with 35 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
package wmo
import (
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
"go.mongodb.org/mongo-driver/v2/bson"
)
var ObjectIDZero = langext.Must(bson.ObjectIDFromHex("000000000000000000000000"))
var PipelineNoMatch = bson.M{"_id": ObjectIDZero, "$expr": bson.M{"$eq": bson.A{"1", "0"}}} // always false | returns nothing