# Functions
Bucket function returns a mongo $bucket operator used in aggregations.
BucketAuto function returns a mongo $bucketAuto operator used in aggregations.
CollStats function returns a mongo $collStats operator used in aggregations.
CurrentOp function returns a mongo $currentOp operator used in aggregations.
Group function returns a mongo $group operator used in aggregations.
Lookup function returns a mongo $lookup operator used in aggregations.
Merge function returns a mongo $merge operator used in aggregations.
New function creates a new base operator with the specified key and value.
ReplaceRoot function returns a mongo $replaceRoot operator used in aggregations.
S receives operators as parameters and returns a bson.M that can be used in filters, stages, etc.
Sample function returns a mongo sample operator used in aggregations.
UncorrelatedLookup function returns a mongo $lookup operator used in aggregations.
Unwind function returns a mongo $unwind operator used in aggregations.
# Structs
BaseOperator is a simple operator struct that implements the Operator interface.
SMap is simple map that can be substituted of `bson.M` to have a simpler map structure for queries, aggregations, etc.
# Interfaces
Operator is an interface that should be implemented by structs used as operators.