chore: add type Collection
This commit is contained in:
parent
6afc7d2352
commit
d6dfb47547
@ -10,6 +10,7 @@ package mgodb
|
|||||||
import (
|
import (
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||||
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
)
|
)
|
||||||
|
|
||||||
// M is an unordered representation of a BSON document.
|
// M is an unordered representation of a BSON document.
|
||||||
@ -25,3 +26,6 @@ type D = bson.D
|
|||||||
type A = bson.A
|
type A = bson.A
|
||||||
|
|
||||||
type ObjectID = primitive.ObjectID
|
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
|
Loading…
Reference in New Issue
Block a user