chore: add type Collection

This commit is contained in:
tiglog 2023-08-13 20:03:26 +08:00
parent 6afc7d2352
commit d6dfb47547

View File

@ -10,6 +10,7 @@ package mgodb
import (
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
)
// M is an unordered representation of a BSON document.
@ -25,3 +26,6 @@ type D = bson.D
type A = bson.A
type ObjectID = primitive.ObjectID
// Collection is a handle to a MongoDB collection. It is safe for concurrent use by multiple goroutines.
type Collection = mongo.Collection