Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoCollection ¶
type MongoCollection interface {
GetCollection() *mongo.Collection
InsertOne(document interface{}) (*mongo.InsertOneResult, error)
InsertMany(documents []interface{}) (*mongo.InsertManyResult, error)
DeleteOne(filter interface{}) error
DeleteMany(filter interface{}) error
UpdateOne(filter, update interface{}) error
UpdateMany(filter, update interface{}) error
FindOne(filter interface{}) *mongo.SingleResult
FindMany(filter interface{}, options *options.FindOptions) (*mongo.Cursor, error)
Count() (int64, error)
}
Click to show internal directories.
Click to hide internal directories.