Versions in this module Expand all Collapse all v2 v2.3.0 Apr 21, 2026 v2.1.0 Feb 9, 2026 Changes in this version + var DefaultDatabase string + type MongoDB struct + Collection string + CountPipeline []bson.M + Database string + ExcludeFields []string + Filter map[string]any + IncludeFields []string + Index string + Pipeline []bson.M + SortFields []string + func (m *MongoDB) Aggregate(ctx context.Context, result any, opts ...*options.AggregateOptions) error + func (m *MongoDB) AggregateByPage(ctx context.Context, countResult, result any, ...) error + func (m *MongoDB) CountDocuments(ctx context.Context) (int64, error) + func (m *MongoDB) DeleteMany(ctx context.Context) (int64, error) + func (m *MongoDB) DeleteOne(ctx context.Context) (int64, error) + func (m *MongoDB) EstimatedDocumentCount(ctx context.Context) (int64, error) + func (m *MongoDB) Find(ctx context.Context, result any) error + func (m *MongoDB) FindByPage(ctx context.Context, paging *Paging, result any) (err error) + func (m *MongoDB) FindOne(ctx context.Context, result any) error + func (m *MongoDB) FindOneAndDelete(ctx context.Context, result any) error + func (m *MongoDB) FindOneAndUpdate(ctx context.Context, update any, result any, ...) error + func (m *MongoDB) InsertMany(ctx context.Context, documents []any) ([]any, error) + func (m *MongoDB) InsertOne(ctx context.Context, document any) (any, error) + func (m *MongoDB) UpdateById(ctx context.Context, id, update any, opts ...*options.UpdateOptions) error + func (m *MongoDB) UpdateMany(ctx context.Context, update any, opts ...*options.UpdateOptions) error + func (m *MongoDB) UpdateOne(ctx context.Context, update any, opts ...*options.UpdateOptions) error + type Paging struct + EndNums int64 + Page int64 + PageCount int64 + PageSize int64 + StartNums int64 + Total int64 + func (p *Paging) GetPages() Other modules containing this package github.com/iimeta/fastapi-admin