v0.0.147
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package wmo
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
ct "gogs.mikescher.com/BlackForestBytes/goext/cursortoken"
|
||||
)
|
||||
@@ -70,6 +71,10 @@ func CreatePagination[TData any](coll *Coll[TData], token ct.CursorToken, fieldP
|
||||
// false
|
||||
pipeline = append(pipeline, bson.D{{Key: "$match", Value: bson.M{"$eq": bson.A{"1", "0"}}}})
|
||||
|
||||
} else {
|
||||
|
||||
return nil, errors.New("unknown ct mode: " + string(token.Mode))
|
||||
|
||||
}
|
||||
|
||||
pipeline = append(pipeline, bson.D{{Key: "$sort", Value: sort}})
|
||||
|
||||
Reference in New Issue
Block a user