Versions in this module Expand all Collapse all v0 v0.5.1 Aug 27, 2021 Changes in this version + func BuildQueries(ctx context.Context, p FindParams) (queries []bson.M, sort bson.D, err error) + type Collection interface + CountDocuments func(context.Context, interface{}, ...*options.CountOptions) (int64, error) + Find func(context.Context, interface{}, ...*options.FindOptions) (MongoCursor, error) + type Cursor struct + Count int + HasNext bool + HasPrevious bool + Next string + Previous string + func Find(ctx context.Context, p FindParams, results interface{}) (Cursor, error) + type CursorError struct + func (e *CursorError) Error() string + type FindParams struct + Collation *options.Collation + Collection Collection + CountTotal bool + Hint interface{} + Limit int64 + Next string + PaginatedField string + Previous string + Projection interface{} + Query primitive.M + SortAscending bool + type MongoCursor interface + All func(context.Context, interface{}) error + Close func(context.Context) error + Decode func(interface{}) error + Err func() error + ID func() int64 + Next func(context.Context) bool + RemainingBatchLength func() int + TryNext func(context.Context) bool