Documentation ¶
Index ¶
- Constants
- func Abs(key string, expression any) bson.D
- func Add(key string, expression ...any) bson.D
- func AddWithoutKey(expression ...any) bson.D
- func And(key string, expressions ...any) bson.D
- func AndWithoutKey(expressions ...any) bson.D
- func ArrayElemAt(key string, expression any, index int64) bson.D
- func ArrayElemAtWithoutKey(expression any, index int64) bson.D
- func ArrayToObject(key string, expression any) bson.D
- func ArrayToObjectWithoutKey(expression any) bson.D
- func Avg(key string, expression any) bson.D
- func AvgWithoutKey(expression any) bson.D
- func Ceil(key string, expression any) bson.D
- func Concat(key string, expressions ...any) bson.D
- func ConcatArrays(key string, arrays ...any) bson.D
- func ConcatArraysWithoutKey(arrays ...any) bson.D
- func ConcatWithoutKey(expressions ...any) bson.D
- func Cond(key string, boolExpr, tureExpr, falseExpr any) bson.D
- func CondWithoutKey(boolExpr, tureExpr, falseExpr any) bson.D
- func Contact(key string, expressions ...any) bson.D
- func ContactWithoutKey(expressions ...any) bson.D
- func DateToString(key string, date any, opt *DateToStringOptions) bson.D
- func DateToStringWithoutKey(date any, opt *DateToStringOptions) bson.D
- func DayOfMonth(key string, date time.Time) bson.D
- func DayOfMonthWithTimezone(key string, date time.Time, timezone string) bson.D
- func DayOfMonthWithTimezoneWithoutKey(date time.Time, timezone string) bson.D
- func DayOfMonthWithoutKey(date time.Time) bson.D
- func DayOfWeek(key string, date time.Time) bson.D
- func DayOfWeekWithTimezone(key string, date time.Time, timezone string) bson.D
- func DayOfWeekWithTimezoneWithoutKey(date time.Time, timezone string) bson.D
- func DayOfWeekWithoutKey(date time.Time) bson.D
- func DayOfYear(key string, date time.Time) bson.D
- func DayOfYearWithTimezone(key string, date time.Time, timezone string) bson.D
- func DayOfYearWithTimezoneWithoutKey(date time.Time, timezone string) bson.D
- func DayOfYearWithoutKey(date time.Time) bson.D
- func Divide(key string, expressions ...any) bson.D
- func DivideWithoutKey(expressions ...any) bson.D
- func Eq(key string, expressions ...any) bson.D
- func EqWithoutKey(expressions ...any) bson.D
- func Exp(key string, exponent any) bson.D
- func Filter(key string, inputArray any, cond any, opt *FilterOptions) bson.D
- func FilterWithoutKey(inputArray any, cond any, opt *FilterOptions) bson.D
- func First(key string, expression any) bson.D
- func FirstWithoutKey(expression any) bson.D
- func Floor(key string, numberExpression any) bson.D
- func Gt(key string, expressions ...any) bson.D
- func GtWithoutKey(expressions ...any) bson.D
- func Gte(key string, expressions ...any) bson.D
- func GteWithoutKey(expressions ...any) bson.D
- func IfNull(key string, expr, replacement any) bson.D
- func IfNullWithoutKey(expr, replacement any) bson.D
- func Last(key string, expression any) bson.D
- func LastWithoutKey(expression any) bson.D
- func Ln(key string, numberExpression any) bson.D
- func Log(key string, numberExpression, baseNumberExpression any) bson.D
- func Log10(key string, numberExpression any) bson.D
- func Lt(key string, expressions ...any) bson.D
- func LtWithoutKey(expressions ...any) bson.D
- func Lte(key string, expressions ...any) bson.D
- func LteWithoutKey(expressions ...any) bson.D
- func Map(key string, inputArray any, as string, in any) bson.D
- func MapWithoutKey(inputArray any, as string, in any) bson.D
- func Max(key string, expression any) bson.D
- func MaxWithoutKey(expression any) bson.D
- func Min(key string, expression any) bson.D
- func MinWithoutKey(expression any) bson.D
- func Mod(key string, expressions ...any) bson.D
- func ModWithoutKey(expressions ...any) bson.D
- func Month(key string, date time.Time) bson.D
- func MonthWithTimezone(key string, date time.Time, timezone string) bson.D
- func MonthWithTimezoneWithoutKey(date time.Time, timezone string) bson.D
- func MonthWithoutKey(date time.Time) bson.D
- func Multiply(key string, expressions ...any) bson.D
- func MultiplyWithoutKey(expressions ...any) bson.D
- func Ne(key string, expressions ...any) bson.D
- func NeWithoutKey(expressions ...any) bson.D
- func Not(key string, expressions ...any) bson.D
- func NotWithoutKey(expressions ...any) bson.D
- func Or(key string, expressions ...any) bson.D
- func OrWithoutKey(expressions ...any) bson.D
- func Pow(key string, numberExpression, exponentExpression any) bson.D
- func Push(key string, expression any) bson.D
- func PushWithoutKey(expression any) bson.D
- func Round(key string, numberExpression, placeExpression any) bson.D
- func Size(key string, expression any) bson.D
- func SizeWithoutKey(expression any) bson.D
- func Slice(key string, array any, nElements int64) bson.D
- func SliceWithPosition(key string, array any, position, nElements int64) bson.D
- func SliceWithPositionWithoutKey(array any, position, nElements int64) bson.D
- func SliceWithoutKey(array any, nElements int64) bson.D
- func Sqrt(key string, numberExpression any) bson.D
- func SubstrBytes(key string, stringExpression string, byteIndex int64, byteCount int64) bson.D
- func SubstrBytesWithoutKey(stringExpression string, byteIndex int64, byteCount int64) bson.D
- func Subtract(key string, expression ...any) bson.D
- func SubtractWithoutKey(expressions ...any) bson.D
- func Sum(key string, expression any) bson.D
- func SumWithoutKey(expression any) bson.D
- func Switch(key string, cases []CaseThen, defaultCase any) bson.D
- func SwitchWithoutKey(cases []CaseThen, defaultCase any) bson.D
- func ToLower(key string, expression any) bson.D
- func ToLowerWithoutKey(expression any) bson.D
- func ToUpper(key string, expression any) bson.D
- func ToUpperWithoutKey(expression any) bson.D
- func Trunc(key string, numberExpression, placeExpression any) bson.D
- func Week(key string, date time.Time) bson.D
- func WeekWithTimezone(key string, date time.Time, timezone string) bson.D
- func WeekWithTimezoneWithoutKey(date time.Time, timezone string) bson.D
- func WeekWithoutKey(date time.Time) bson.D
- func Year(key string, date time.Time) bson.D
- func YearWithTimezone(key string, date time.Time, timezone string) bson.D
- func YearWithTimezoneWithoutKey(date time.Time, timezone string) bson.D
- func YearWithoutKey(date time.Time) bson.D
- type BucketAutoOptions
- type BucketOptions
- type Builder
- func (b *Builder) Abs(key string, expression any) *Builder
- func (b *Builder) AbsWithoutKey(expression any) *Builder
- func (b *Builder) Add(key string, expressions ...any) *Builder
- func (b *Builder) AddWithoutKey(expressions ...any) *Builder
- func (b *Builder) And(key string, expressions ...any) *Builder
- func (b *Builder) AndWithoutKey(expressions ...any) *Builder
- func (b *Builder) ArrayElemAt(key string, expression any, index int64) *Builder
- func (b *Builder) ArrayElemAtWithoutKey(expression any, index int64) *Builder
- func (b *Builder) ArrayToObject(key string, expression any) *Builder
- func (b *Builder) ArrayToObjectWithoutKey(expression any) *Builder
- func (b *Builder) Avg(key string, expression any) *Builder
- func (b *Builder) AvgWithoutKey(expression any) *Builder
- func (b *Builder) Build() bson.D
- func (b *Builder) Ceil(key string, expression any) *Builder
- func (b *Builder) CeilWithoutKey(expression any) *Builder
- func (b *Builder) Concat(key string, expressions ...any) *Builder
- func (b *Builder) ConcatArrays(key string, arrays ...any) *Builder
- func (b *Builder) ConcatArraysWithoutKey(arrays ...any) *Builder
- func (b *Builder) ConcatWithoutKey(expressions ...any) *Builder
- func (b Builder) Cond(key string, boolExpr, tureExpr, falseExpr any) *Builder
- func (b Builder) CondWithoutKey(boolExpr, tureExpr, falseExpr any) *Builder
- func (b *Builder) Contact(key string, expressions ...any) *Builder
- func (b *Builder) ContactWithoutKey(expressions ...any) *Builder
- func (b *Builder) DateToString(key string, date any, opt *DateToStringOptions) *Builder
- func (b *Builder) DateToStringWithoutKey(date any, opt *DateToStringOptions) *Builder
- func (b *Builder) DayOfMonth(key string, date time.Time) *Builder
- func (b *Builder) DayOfMonthWithTimezone(key string, date time.Time, timezone string) *Builder
- func (b *Builder) DayOfMonthWithTimezoneWithoutKey(date time.Time, timezone string) *Builder
- func (b *Builder) DayOfMonthWithoutKey(date time.Time) *Builder
- func (b *Builder) DayOfWeek(key string, date time.Time) *Builder
- func (b *Builder) DayOfWeekWithTimezone(key string, date time.Time, timezone string) *Builder
- func (b *Builder) DayOfWeekWithTimezoneWithoutKey(date time.Time, timezone string) *Builder
- func (b *Builder) DayOfWeekWithoutKey(date time.Time) *Builder
- func (b *Builder) DayOfYear(key string, date time.Time) *Builder
- func (b *Builder) DayOfYearWithTimezone(key string, date time.Time, timezone string) *Builder
- func (b *Builder) DayOfYearWithTimezoneWithoutKey(date time.Time, timezone string) *Builder
- func (b *Builder) DayOfYearWithoutKey(date time.Time) *Builder
- func (b *Builder) Divide(key string, expressions ...any) *Builder
- func (b *Builder) DivideWithoutKey(expressions ...any) *Builder
- func (b *Builder) Eq(key string, expressions ...any) *Builder
- func (b *Builder) EqWithoutKey(expressions ...any) *Builder
- func (b *Builder) Exp(key string, exponent any) *Builder
- func (b *Builder) ExpWithoutKey(exponent any) *Builder
- func (b *Builder) Filter(key string, inputArray any, cond any, opt *FilterOptions) *Builder
- func (b *Builder) FilterWithoutKey(inputArray any, cond any, opt *FilterOptions) *Builder
- func (b *Builder) First(key string, expression any) *Builder
- func (b *Builder) FirstWithoutKey(expression any) *Builder
- func (b *Builder) Floor(key string, numberExpression any) *Builder
- func (b *Builder) FloorWithoutKey(numberExpression any) *Builder
- func (b *Builder) Gt(key string, expressions ...any) *Builder
- func (b *Builder) GtWithoutKey(expressions ...any) *Builder
- func (b *Builder) Gte(key string, expressions ...any) *Builder
- func (b *Builder) GteWithoutKey(expressions ...any) *Builder
- func (b Builder) IfNull(key string, expr, replacement any) *Builder
- func (b Builder) IfNullWithoutKey(expr, replacement any) *Builder
- func (b *Builder) KeyValue(key string, value any) *Builder
- func (b *Builder) Last(key string, expression any) *Builder
- func (b *Builder) LastWithoutKey(expression any) *Builder
- func (b *Builder) Ln(key string, numberExpression any) *Builder
- func (b *Builder) LnWithoutKey(numberExpression any) *Builder
- func (b *Builder) Log(key string, numberExpression, baseNumberExpression any) *Builder
- func (b *Builder) Log10(key string, numberExpression any) *Builder
- func (b *Builder) Log10WithoutKey(numberExpression any) *Builder
- func (b *Builder) LogWithoutKey(numberExpression, baseNumberExpression any) *Builder
- func (b *Builder) Lt(key string, expressions ...any) *Builder
- func (b *Builder) LtWithoutKey(expressions ...any) *Builder
- func (b *Builder) Lte(key string, expressions ...any) *Builder
- func (b *Builder) LteWithoutKey(expressions ...any) *Builder
- func (b *Builder) Map(key string, inputArray any, as string, in any) *Builder
- func (b *Builder) MapWithoutKey(inputArray any, as string, in any) *Builder
- func (b *Builder) Max(key string, expression any) *Builder
- func (b *Builder) MaxWithoutKey(expression any) *Builder
- func (b *Builder) Min(key string, expression any) *Builder
- func (b *Builder) MinWithoutKey(expression any) *Builder
- func (b *Builder) Mod(key string, expressions ...any) *Builder
- func (b *Builder) ModWithoutKey(expressions ...any) *Builder
- func (b *Builder) Month(key string, date time.Time) *Builder
- func (b *Builder) MonthWithTimezone(key string, date time.Time, timezone string) *Builder
- func (b *Builder) MonthWithTimezoneWithoutKey(date time.Time, timezone string) *Builder
- func (b *Builder) MonthWithoutKey(date time.Time) *Builder
- func (b *Builder) Multiply(key string, expressions ...any) *Builder
- func (b *Builder) MultiplyWithoutKey(expressions ...any) *Builder
- func (b *Builder) Ne(key string, expressions ...any) *Builder
- func (b *Builder) NeWithoutKey(expressions ...any) *Builder
- func (b *Builder) Not(key string, expressions ...any) *Builder
- func (b *Builder) NotWithoutKey(expressions ...any) *Builder
- func (b *Builder) Or(key string, expressions ...any) *Builder
- func (b *Builder) OrWithoutKey(expressions ...any) *Builder
- func (b *Builder) Pow(key string, numberExpression, exponentExpression any) *Builder
- func (b *Builder) PowWithoutKey(numberExpression, exponentExpression any) *Builder
- func (b *Builder) Push(key string, expression any) *Builder
- func (b *Builder) PushWithoutKey(expression any) *Builder
- func (b *Builder) Round(key string, numberExpression, placeExpression any) *Builder
- func (b *Builder) RoundWithoutKey(numberExpression, placeExpression any) *Builder
- func (b *Builder) Size(key string, expression any) *Builder
- func (b *Builder) SizeWithoutKey(expression any) *Builder
- func (b *Builder) Slice(key string, array any, nElements int64) *Builder
- func (b *Builder) SliceWithPosition(key string, array any, position, nElements int64) *Builder
- func (b *Builder) SliceWithPositionWithoutKey(array any, position, nElements int64) *Builder
- func (b *Builder) SliceWithoutKey(array any, nElements int64) *Builder
- func (b *Builder) Sqrt(key string, numberExpression any) *Builder
- func (b *Builder) SqrtWithoutKey(numberExpression any) *Builder
- func (b *Builder) SubstrBytes(key string, stringExpression string, byteIndex int64, byteCount int64) *Builder
- func (b *Builder) SubstrBytesWithoutKey(stringExpression string, byteIndex int64, byteCount int64) *Builder
- func (b *Builder) Subtract(key string, expressions ...any) *Builder
- func (b *Builder) SubtractWithoutKey(expressions ...any) *Builder
- func (b *Builder) Sum(key string, expression any) *Builder
- func (b *Builder) SumWithoutKey(expression any) *Builder
- func (b Builder) Switch(key string, cases []CaseThen, defaultCase any) *Builder
- func (b Builder) SwitchWithoutKey(cases []CaseThen, defaultCase any) *Builder
- func (b *Builder) ToLower(key string, expression any) *Builder
- func (b *Builder) ToLowerWithoutKey(expression any) *Builder
- func (b *Builder) ToUpper(key string, expression any) *Builder
- func (b *Builder) ToUpperWithoutKey(expression any) *Builder
- func (b *Builder) Trunc(key string, numberExpression, placeExpression any) *Builder
- func (b *Builder) TruncWithoutKey(numberExpression, placeExpression any) *Builder
- func (b *Builder) Week(key string, date time.Time) *Builder
- func (b *Builder) WeekWithTimezone(key string, date time.Time, timezone string) *Builder
- func (b *Builder) WeekWithTimezoneWithoutKey(date time.Time, timezone string) *Builder
- func (b *Builder) WeekWithoutKey(date time.Time) *Builder
- func (b *Builder) Year(key string, date time.Time) *Builder
- func (b *Builder) YearWithTimezone(key string, date time.Time, timezone string) *Builder
- func (b *Builder) YearWithTimezoneWithoutKey(date time.Time, timezone string) *Builder
- func (b *Builder) YearWithoutKey(date time.Time) *Builder
- type CaseThen
- type DateToStringOptions
- type FilterOptions
- type LookUpOptions
- type StageBuilder
- func (b *StageBuilder) AddFields(value any) *StageBuilder
- func (b *StageBuilder) Bucket(groupBy any, boundaries []any, opt *BucketOptions) *StageBuilder
- func (b *StageBuilder) BucketAuto(groupBy any, buckets int, opt *BucketAutoOptions) *StageBuilder
- func (b *StageBuilder) Build() mongo.Pipeline
- func (b *StageBuilder) Count(countName string) *StageBuilder
- func (b *StageBuilder) Facet(value any) *StageBuilder
- func (b *StageBuilder) Group(id any, accumulators ...bson.E) *StageBuilder
- func (b *StageBuilder) Limit(limit int64) *StageBuilder
- func (b *StageBuilder) Lookup(from, as string, opt *LookUpOptions) *StageBuilder
- func (b *StageBuilder) Match(expression any) *StageBuilder
- func (b *StageBuilder) Project(value any) *StageBuilder
- func (b *StageBuilder) ReplaceWith(replacementDocument any) *StageBuilder
- func (b *StageBuilder) Set(value any) *StageBuilder
- func (b *StageBuilder) Skip(skip int64) *StageBuilder
- func (b *StageBuilder) Sort(value any) *StageBuilder
- func (b *StageBuilder) SortByCount(expression any) *StageBuilder
- func (b *StageBuilder) Unwind(path string, opt *UnWindOptions) *StageBuilder
- type UnWindOptions
Constants ¶
View Source
const ( AbsOp = "$abs" AddOp = "$add" AndOp = "$and" ArrayElemAtOp = "$arrayElemAt" ArrayToObjectOp = "$arrayToObject" AsOp = "as" AvgOp = "$avg" BranchesOp = "branches" CaseOp = "case" CeilOp = "$ceil" ConcatArraysOp = "$concatArrays" ConcatOp = "$concat" CondOp = "$cond" CondWithoutOperatorOp = "cond" ContactOp = "$concat" DateOp = "date" DateToStringOp = "$dateToString" DayOfMonthOp = "$dayOfMonth" DayOfWeekOp = "$dayOfWeek" DayOfYearOp = "$dayOfYear" DefaultCaseOp = "default" DivideOp = "$divide" EqOp = "$eq" ExpOp = "$exp" FilterOp = "$filter" FirstOp = "$first" FloorOp = "$floor" FormatOp = "format" GtOp = "$gt" GteOp = "$gte" IfNullOp = "$ifNull" InOp = "in" InputOp = "input" LastOp = "$last" LIMIT = "limit" LnOp = "$ln" Log10Op = "$log10" LogOp = "$log" LtOp = "$lt" LteOp = "$lte" MapOp = "$map" MaxOp = "$max" MinOp = "$min" ModOp = "$mod" MonthOp = "$month" MultiplyOp = "$multiply" NeOp = "$ne" NotOp = "$not" OnNullOp = "onNull" OrOp = "$or" PowOp = "$pow" PushOp = "$push" RoundOp = "$round" SizeOp = "$size" SliceOp = "$slice" SqrtOp = "$sqrt" SubstrBytesOp = "$substrBytes" SubtractOp = "$subtract" SumOp = "$sum" SwitchOp = "$switch" ThenOp = "then" TimezoneOp = "timezone" ToLowerOp = "$toLower" ToUpperOp = "$toUpper" TruncOp = "$trunc" WeekOp = "$week" YearOp = "$year" )
View Source
const ( StageAddFieldsOp = "$addFields" StageBoundariesOp = "boundaries" StageBucketAutoOp = "$bucketAuto" StageBucketOp = "$bucket" StageBucketsOp = "buckets" StageCountOp = "$count" StageDefaultOp = "default" StageFacetOp = "$facet" StageGranularityOp = "granularity" StageGroupByOp = "groupBy" StageGroupOp = "$group" StageLimitOp = "$limit" StageLookUpOp = "$lookup" StageMatchOp = "$match" StageOutputOp = "output" StageProjectOp = "$project" StageReplaceWithOp = "$replaceWith" StageSetOp = "$set" StageSkipOp = "$skip" StageSortByCountOp = "$sortByCount" StageSortOp = "$sort" StageUnwindOp = "$unwind" )
Stages
Variables ¶
This section is empty.
Functions ¶
func AddWithoutKey ¶
func AndWithoutKey ¶
func ArrayToObjectWithoutKey ¶
func AvgWithoutKey ¶
func ConcatArraysWithoutKey ¶
func ConcatWithoutKey ¶
func CondWithoutKey ¶
func ContactWithoutKey ¶
func DateToString ¶
func DateToString(key string, date any, opt *DateToStringOptions) bson.D
func DateToStringWithoutKey ¶
func DateToStringWithoutKey(date any, opt *DateToStringOptions) bson.D
func DayOfMonthWithTimezone ¶
func DayOfWeekWithTimezone ¶
func DayOfYearWithTimezone ¶
func DivideWithoutKey ¶
func EqWithoutKey ¶
func FilterWithoutKey ¶
func FilterWithoutKey(inputArray any, cond any, opt *FilterOptions) bson.D
func FirstWithoutKey ¶
func GtWithoutKey ¶
func GteWithoutKey ¶
func IfNullWithoutKey ¶
func LastWithoutKey ¶
func LtWithoutKey ¶
func LteWithoutKey ¶
func MaxWithoutKey ¶
func MinWithoutKey ¶
func ModWithoutKey ¶
func MultiplyWithoutKey ¶
func NeWithoutKey ¶
func NotWithoutKey ¶
func OrWithoutKey ¶
func PushWithoutKey ¶
func SizeWithoutKey ¶
func SliceWithPosition ¶
func SubstrBytes ¶
func SubstrBytesWithoutKey ¶
func SubtractWithoutKey ¶
func SumWithoutKey ¶
func ToLowerWithoutKey ¶
func ToUpperWithoutKey ¶
Types ¶
type BucketAutoOptions ¶
type BucketOptions ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) AbsWithoutKey ¶
func (*Builder) AddWithoutKey ¶
func (*Builder) AndWithoutKey ¶
func (*Builder) ArrayElemAt ¶
func (*Builder) ArrayElemAtWithoutKey ¶
func (*Builder) ArrayToObject ¶
func (*Builder) ArrayToObjectWithoutKey ¶
func (*Builder) AvgWithoutKey ¶
func (*Builder) CeilWithoutKey ¶
func (*Builder) ConcatArrays ¶
func (*Builder) ConcatArraysWithoutKey ¶
func (*Builder) ConcatWithoutKey ¶
func (Builder) CondWithoutKey ¶
func (*Builder) ContactWithoutKey ¶
func (*Builder) DateToString ¶
func (b *Builder) DateToString(key string, date any, opt *DateToStringOptions) *Builder
func (*Builder) DateToStringWithoutKey ¶
func (b *Builder) DateToStringWithoutKey(date any, opt *DateToStringOptions) *Builder
func (*Builder) DayOfMonthWithTimezone ¶
func (*Builder) DayOfMonthWithTimezoneWithoutKey ¶
func (*Builder) DayOfMonthWithoutKey ¶
func (*Builder) DayOfWeekWithTimezone ¶
func (*Builder) DayOfWeekWithTimezoneWithoutKey ¶
func (*Builder) DayOfWeekWithoutKey ¶
func (*Builder) DayOfYearWithTimezone ¶
func (*Builder) DayOfYearWithTimezoneWithoutKey ¶
func (*Builder) DayOfYearWithoutKey ¶
func (*Builder) DivideWithoutKey ¶
func (*Builder) EqWithoutKey ¶
func (*Builder) ExpWithoutKey ¶
func (*Builder) Filter ¶
func (b *Builder) Filter(key string, inputArray any, cond any, opt *FilterOptions) *Builder
func (*Builder) FilterWithoutKey ¶
func (b *Builder) FilterWithoutKey(inputArray any, cond any, opt *FilterOptions) *Builder
func (*Builder) FirstWithoutKey ¶
func (*Builder) FloorWithoutKey ¶
func (*Builder) GtWithoutKey ¶
func (*Builder) GteWithoutKey ¶
func (Builder) IfNullWithoutKey ¶
func (*Builder) LastWithoutKey ¶
func (*Builder) LnWithoutKey ¶
func (*Builder) Log10WithoutKey ¶
func (*Builder) LogWithoutKey ¶
func (*Builder) LtWithoutKey ¶
func (*Builder) LteWithoutKey ¶
func (*Builder) MapWithoutKey ¶
func (*Builder) MaxWithoutKey ¶
func (*Builder) MinWithoutKey ¶
func (*Builder) ModWithoutKey ¶
func (*Builder) MonthWithTimezone ¶
func (*Builder) MonthWithTimezoneWithoutKey ¶
func (*Builder) MonthWithoutKey ¶
func (*Builder) MultiplyWithoutKey ¶
func (*Builder) NeWithoutKey ¶
func (*Builder) NotWithoutKey ¶
func (*Builder) OrWithoutKey ¶
func (*Builder) PowWithoutKey ¶
func (*Builder) PushWithoutKey ¶
func (*Builder) RoundWithoutKey ¶
func (*Builder) SizeWithoutKey ¶
func (*Builder) SliceWithPosition ¶
func (*Builder) SliceWithPositionWithoutKey ¶
func (*Builder) SliceWithoutKey ¶
func (*Builder) SqrtWithoutKey ¶
func (*Builder) SubstrBytes ¶
func (*Builder) SubstrBytesWithoutKey ¶
func (*Builder) SubtractWithoutKey ¶
func (*Builder) SumWithoutKey ¶
func (Builder) SwitchWithoutKey ¶
func (*Builder) ToLowerWithoutKey ¶
func (*Builder) ToUpperWithoutKey ¶
func (*Builder) TruncWithoutKey ¶
func (*Builder) WeekWithTimezone ¶
func (*Builder) WeekWithTimezoneWithoutKey ¶
func (*Builder) WeekWithoutKey ¶
func (*Builder) YearWithTimezone ¶
func (*Builder) YearWithTimezoneWithoutKey ¶
func (*Builder) YearWithoutKey ¶
type DateToStringOptions ¶
type FilterOptions ¶
type LookUpOptions ¶
type StageBuilder ¶
type StageBuilder struct {
// contains filtered or unexported fields
}
func NewStageBuilder ¶
func NewStageBuilder() *StageBuilder
func (*StageBuilder) AddFields ¶
func (b *StageBuilder) AddFields(value any) *StageBuilder
func (*StageBuilder) Bucket ¶
func (b *StageBuilder) Bucket(groupBy any, boundaries []any, opt *BucketOptions) *StageBuilder
func (*StageBuilder) BucketAuto ¶
func (b *StageBuilder) BucketAuto(groupBy any, buckets int, opt *BucketAutoOptions) *StageBuilder
func (*StageBuilder) Build ¶
func (b *StageBuilder) Build() mongo.Pipeline
func (*StageBuilder) Count ¶
func (b *StageBuilder) Count(countName string) *StageBuilder
func (*StageBuilder) Facet ¶
func (b *StageBuilder) Facet(value any) *StageBuilder
func (*StageBuilder) Group ¶
func (b *StageBuilder) Group(id any, accumulators ...bson.E) *StageBuilder
func (*StageBuilder) Limit ¶
func (b *StageBuilder) Limit(limit int64) *StageBuilder
func (*StageBuilder) Lookup ¶
func (b *StageBuilder) Lookup(from, as string, opt *LookUpOptions) *StageBuilder
func (*StageBuilder) Match ¶
func (b *StageBuilder) Match(expression any) *StageBuilder
func (*StageBuilder) Project ¶
func (b *StageBuilder) Project(value any) *StageBuilder
func (*StageBuilder) ReplaceWith ¶
func (b *StageBuilder) ReplaceWith(replacementDocument any) *StageBuilder
func (*StageBuilder) Set ¶
func (b *StageBuilder) Set(value any) *StageBuilder
func (*StageBuilder) Skip ¶
func (b *StageBuilder) Skip(skip int64) *StageBuilder
func (*StageBuilder) Sort ¶
func (b *StageBuilder) Sort(value any) *StageBuilder
func (*StageBuilder) SortByCount ¶
func (b *StageBuilder) SortByCount(expression any) *StageBuilder
func (*StageBuilder) Unwind ¶
func (b *StageBuilder) Unwind(path string, opt *UnWindOptions) *StageBuilder
type UnWindOptions ¶
Click to show internal directories.
Click to hide internal directories.