Documentation ¶
Index ¶
- type Collection
- func (c *Collection) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (*mongo.Cursor, error)
- func (c *Collection) BulkWrite(ctx context.Context, models []mongo.WriteModel, ...) (*mongo.BulkWriteResult, error)
- func (c *Collection) Clone(opts ...*options.CollectionOptions) (*mongo.Collection, error)
- func (c *Collection) CountDocuments(ctx context.Context, filter interface{}, opts ...*options.CountOptions) (int64, error)
- func (c *Collection) Database() *mongo.Database
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
func (*Collection) Aggregate ¶
func (c *Collection) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (*mongo.Cursor, error)
func (*Collection) BulkWrite ¶
func (c *Collection) BulkWrite(ctx context.Context, models []mongo.WriteModel, opts ...*options.BulkWriteOptions) (*mongo.BulkWriteResult, error)
func (*Collection) Clone ¶
func (c *Collection) Clone(opts ...*options.CollectionOptions) (*mongo.Collection, error)
func (*Collection) CountDocuments ¶
func (c *Collection) CountDocuments(ctx context.Context, filter interface{}, opts ...*options.CountOptions) (int64, error)
func (*Collection) Database ¶
func (c *Collection) Database() *mongo.Database
type Database ¶
func (*Database) Collection ¶
func (db *Database) Collection(name string, opts ...*options.CollectionOptions) *mongo.Collection
Click to show internal directories.
Click to hide internal directories.