mongoose 6.9.0 → 6.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  declare module 'mongoose' {
2
2
 
3
3
  /**
4
- * [Expressions reference](https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#expressions)
4
+ * [Expressions reference](https://www.mongodb.com/docs/manual/meta/aggregation-quick-reference/#expressions)
5
5
  */
6
6
  type AggregationVariables =
7
7
  SpecialPathVariables |
@@ -21,7 +21,7 @@ declare module 'mongoose' {
21
21
  /**
22
22
  * Returns the absolute value of a number.
23
23
  *
24
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/abs/#mongodb-expression-exp.-abs
24
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/abs/#mongodb-expression-exp.-abs
25
25
  */
26
26
  $abs: Path | ArithmeticExpressionOperator;
27
27
  }
@@ -30,7 +30,7 @@ declare module 'mongoose' {
30
30
  /**
31
31
  * Adds numbers to return the sum, or adds numbers and a date to return a new date. If adding numbers and a date, treats the numbers as milliseconds. Accepts any number of argument expressions, but at most, one expression can resolve to a date.
32
32
  *
33
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/add/#mongodb-expression-exp.-add
33
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/add/#mongodb-expression-exp.-add
34
34
  */
35
35
  $add: Expression[];
36
36
  }
@@ -39,7 +39,7 @@ declare module 'mongoose' {
39
39
  /**
40
40
  * Returns the smallest integer greater than or equal to the specified number.
41
41
  *
42
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/ceil/#mongodb-expression-exp.-ceil
42
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/ceil/#mongodb-expression-exp.-ceil
43
43
  */
44
44
  $ceil: NumberExpression;
45
45
  }
@@ -48,7 +48,7 @@ declare module 'mongoose' {
48
48
  /**
49
49
  * Returns the result of dividing the first number by the second. Accepts two argument expressions.
50
50
  *
51
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/divide/#mongodb-expression-exp.-divide
51
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/divide/#mongodb-expression-exp.-divide
52
52
  */
53
53
  $divide: NumberExpression[];
54
54
  }
@@ -57,7 +57,7 @@ declare module 'mongoose' {
57
57
  /**
58
58
  * Raises e to the specified exponent.
59
59
  *
60
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/exp/#mongodb-expression-exp.-exp
60
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/exp/#mongodb-expression-exp.-exp
61
61
  */
62
62
  $exp: NumberExpression;
63
63
  }
@@ -66,7 +66,7 @@ declare module 'mongoose' {
66
66
  /**
67
67
  * Returns the largest integer less than or equal to the specified number.
68
68
  *
69
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/floor/#mongodb-expression-exp.-floor
69
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/floor/#mongodb-expression-exp.-floor
70
70
  */
71
71
  $floor: NumberExpression;
72
72
  }
@@ -75,7 +75,7 @@ declare module 'mongoose' {
75
75
  /**
76
76
  * Calculates the natural log of a number.
77
77
  *
78
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/ln/#mongodb-expression-exp.-ln
78
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/ln/#mongodb-expression-exp.-ln
79
79
  */
80
80
  $ln: NumberExpression;
81
81
  }
@@ -84,7 +84,7 @@ declare module 'mongoose' {
84
84
  /**
85
85
  * Calculates the log of a number in the specified base.
86
86
  *
87
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/log/#mongodb-expression-exp.-log
87
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/log/#mongodb-expression-exp.-log
88
88
  */
89
89
  $log: [NumberExpression, NumberExpression];
90
90
  }
@@ -93,7 +93,7 @@ declare module 'mongoose' {
93
93
  /**
94
94
  * Calculates the log base 10 of a number.
95
95
  *
96
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/log10/#mongodb-expression-exp.-log10
96
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/log10/#mongodb-expression-exp.-log10
97
97
  */
98
98
  $log10: NumberExpression;
99
99
  }
@@ -102,7 +102,7 @@ declare module 'mongoose' {
102
102
  /**
103
103
  * Returns the remainder of the first number divided by the second. Accepts two argument expressions.
104
104
  *
105
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/mod/#mongodb-expression-exp.-mod
105
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/mod/#mongodb-expression-exp.-mod
106
106
  */
107
107
  $mod: [NumberExpression, NumberExpression];
108
108
  }
@@ -110,7 +110,7 @@ declare module 'mongoose' {
110
110
  /**
111
111
  * Multiplies numbers to return the product. Accepts any number of argument expressions.
112
112
  *
113
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/multiply/#mongodb-expression-exp.-multiply
113
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/multiply/#mongodb-expression-exp.-multiply
114
114
  */
115
115
  $multiply: NumberExpression[];
116
116
  }
@@ -119,7 +119,7 @@ declare module 'mongoose' {
119
119
  /**
120
120
  * Raises a number to the specified exponent.
121
121
  *
122
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/pow/#mongodb-expression-exp.-pow
122
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/pow/#mongodb-expression-exp.-pow
123
123
  */
124
124
  $pow: [NumberExpression, NumberExpression];
125
125
  }
@@ -128,7 +128,7 @@ declare module 'mongoose' {
128
128
  /**
129
129
  * Rounds a number to to a whole integer or to a specified decimal place.
130
130
  *
131
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/round/#mongodb-expression-exp.-round
131
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/round/#mongodb-expression-exp.-round
132
132
  */
133
133
  $round: [NumberExpression, NumberExpression?];
134
134
  }
@@ -137,7 +137,7 @@ declare module 'mongoose' {
137
137
  /**
138
138
  * Calculates the square root.
139
139
  *
140
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/sqrt/#mongodb-expression-exp.-sqrt
140
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/sqrt/#mongodb-expression-exp.-sqrt
141
141
  */
142
142
  $sqrt: NumberExpression;
143
143
  }
@@ -146,7 +146,7 @@ declare module 'mongoose' {
146
146
  /**
147
147
  * Returns the result of subtracting the second value from the first. If the two values are numbers, return the difference. If the two values are dates, return the difference in milliseconds. If the two values are a date and a number in milliseconds, return the resulting date. Accepts two argument expressions. If the two values are a date and a number, specify the date argument first as it is not meaningful to subtract a date from a number.
148
148
  *
149
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/subtract/#mongodb-expression-exp.-subtract
149
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/subtract/#mongodb-expression-exp.-subtract
150
150
  */
151
151
  $subtract: (NumberExpression | DateExpression)[];
152
152
  }
@@ -155,7 +155,7 @@ declare module 'mongoose' {
155
155
  /**
156
156
  * Truncates a number to a whole integer or to a specified decimal place.
157
157
  *
158
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/trunc/#mongodb-expression-exp.-trunc
158
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/trunc/#mongodb-expression-exp.-trunc
159
159
  */
160
160
  $trunc: [NumberExpression, NumberExpression?];
161
161
  }
@@ -164,7 +164,7 @@ declare module 'mongoose' {
164
164
  /**
165
165
  * Returns the sine of a value that is measured in radians.
166
166
  *
167
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/sin/#mongodb-expression-exp.-sin
167
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/sin/#mongodb-expression-exp.-sin
168
168
  */
169
169
  $sin: NumberExpression;
170
170
  }
@@ -174,7 +174,7 @@ declare module 'mongoose' {
174
174
  * Returns the cosine of a value that is measured in radians.
175
175
  *
176
176
  * @version 4.2
177
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/cos/#mongodb-expression-exp.-cos
177
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/cos/#mongodb-expression-exp.-cos
178
178
  */
179
179
  $cos: NumberExpression;
180
180
  }
@@ -184,7 +184,7 @@ declare module 'mongoose' {
184
184
  * Returns the tangent of a value that is measured in radians.
185
185
  *
186
186
  * @version 4.2
187
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/tan/#mongodb-expression-exp.-tan
187
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/tan/#mongodb-expression-exp.-tan
188
188
  */
189
189
  $tan: NumberExpression;
190
190
  }
@@ -194,7 +194,7 @@ declare module 'mongoose' {
194
194
  * Returns the inverse sin (arc sine) of a value in radians.
195
195
  *
196
196
  * @version 4.2
197
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/asin/#mongodb-expression-exp.-asin
197
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/asin/#mongodb-expression-exp.-asin
198
198
  */
199
199
  $asin: NumberExpression;
200
200
  }
@@ -204,7 +204,7 @@ declare module 'mongoose' {
204
204
  * Returns the inverse cosine (arc cosine) of a value in radians.
205
205
  *
206
206
  * @version 4.2
207
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/acos/#mongodb-expression-exp.-acos
207
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/acos/#mongodb-expression-exp.-acos
208
208
  */
209
209
  $acos: NumberExpression;
210
210
  }
@@ -214,7 +214,7 @@ declare module 'mongoose' {
214
214
  * Returns the inverse tangent (arc tangent) of a value in radians.
215
215
  *
216
216
  * @version 4.2
217
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/atan/#mongodb-expression-exp.-atan
217
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/atan/#mongodb-expression-exp.-atan
218
218
  */
219
219
  $atan: NumberExpression;
220
220
  }
@@ -224,7 +224,7 @@ declare module 'mongoose' {
224
224
  * Returns the inverse tangent (arc tangent) of y / x in radians, where y and x are the first and second values passed to the expression respectively.
225
225
  *
226
226
  * @version 4.2
227
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/atan2/#mongodb-expression-exp.-atan2
227
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/atan2/#mongodb-expression-exp.-atan2
228
228
  */
229
229
  $atan2: NumberExpression;
230
230
  }
@@ -234,7 +234,7 @@ declare module 'mongoose' {
234
234
  * Returns the inverse hyperbolic sine (hyperbolic arc sine) of a value in radians.
235
235
  *
236
236
  * @version 4.2
237
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/asinh/#mongodb-expression-exp.-asinh
237
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/asinh/#mongodb-expression-exp.-asinh
238
238
  */
239
239
  $asinh: NumberExpression;
240
240
  }
@@ -244,7 +244,7 @@ declare module 'mongoose' {
244
244
  * Returns the inverse hyperbolic cosine (hyperbolic arc cosine) of a value in radians.
245
245
  *
246
246
  * @version 4.2
247
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/acosh/#mongodb-expression-exp.-acosh
247
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/acosh/#mongodb-expression-exp.-acosh
248
248
  */
249
249
  $acosh: NumberExpression;
250
250
  }
@@ -255,7 +255,7 @@ declare module 'mongoose' {
255
255
  * Returns the inverse hyperbolic tangent (hyperbolic arc tangent) of a value in radians.
256
256
  *
257
257
  * @version 4.2
258
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/atanh/#mongodb-expression-exp.-atanh
258
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/atanh/#mongodb-expression-exp.-atanh
259
259
  */
260
260
  $atanh: NumberExpression;
261
261
  }
@@ -265,7 +265,7 @@ declare module 'mongoose' {
265
265
  * Returns the hyperbolic sine of a value that is measured in radians.
266
266
  *
267
267
  * @version 4.2
268
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/sinh/#mongodb-expression-exp.-sinh
268
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/sinh/#mongodb-expression-exp.-sinh
269
269
  */
270
270
  $sinh: NumberExpression;
271
271
  }
@@ -275,7 +275,7 @@ declare module 'mongoose' {
275
275
  * Returns the hyperbolic cosine of a value that is measured in radians.
276
276
  *
277
277
  * @version 4.2
278
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/cosh/#mongodb-expression-exp.-cosh
278
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/cosh/#mongodb-expression-exp.-cosh
279
279
  */
280
280
  $cosh: NumberExpression;
281
281
  }
@@ -285,7 +285,7 @@ declare module 'mongoose' {
285
285
  * Returns the hyperbolic tangent of a value that is measured in radians.
286
286
  *
287
287
  * @version 4.2
288
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/tanh/#mongodb-expression-exp.-tanh
288
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/tanh/#mongodb-expression-exp.-tanh
289
289
  */
290
290
  $tanh: NumberExpression;
291
291
  }
@@ -295,7 +295,7 @@ declare module 'mongoose' {
295
295
  * Converts a value from degrees to radians.
296
296
  *
297
297
  * @version 4.2
298
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/degreesToRadians/#mongodb-expression-exp.-degreesToRadians
298
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/degreesToRadians/#mongodb-expression-exp.-degreesToRadians
299
299
  */
300
300
  $degreesToRadians: NumberExpression;
301
301
  }
@@ -305,7 +305,7 @@ declare module 'mongoose' {
305
305
  * Converts a value from radians to degrees.
306
306
  *
307
307
  * @version 4.2
308
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/radiansToDegrees/#mongodb-expression-exp.-radiansToDegrees
308
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/radiansToDegrees/#mongodb-expression-exp.-radiansToDegrees
309
309
  */
310
310
  $radiansToDegrees: NumberExpression;
311
311
  }
@@ -314,7 +314,7 @@ declare module 'mongoose' {
314
314
  /**
315
315
  * Access available per-document metadata related to the aggregation operation.
316
316
  *
317
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/meta/#mongodb-expression-exp.-meta
317
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/meta/#mongodb-expression-exp.-meta
318
318
  */
319
319
  $meta: 'textScore' | 'indexKey';
320
320
  }
@@ -324,7 +324,7 @@ declare module 'mongoose' {
324
324
  * Adds a number of time units to a date object.
325
325
  *
326
326
  * @version 5.0.0
327
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateAdd/#mongodb-expression-exp.-dateAdd
327
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateAdd/#mongodb-expression-exp.-dateAdd
328
328
  */
329
329
  $dateAdd: {
330
330
  /**
@@ -360,7 +360,7 @@ declare module 'mongoose' {
360
360
  * Returns the difference between two dates.
361
361
  *
362
362
  * @version 5.0
363
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateDiff/#mongodb-expression-exp.-dateDiff
363
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateDiff/#mongodb-expression-exp.-dateDiff
364
364
  */
365
365
  $dateDiff: {
366
366
  /**
@@ -408,7 +408,7 @@ declare module 'mongoose' {
408
408
  * Constructs a BSON Date object given the date's constituent parts.
409
409
  *
410
410
  * @version 3.6
411
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateFromParts/#mongodb-expression-exp.-dateFromParts
411
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateFromParts/#mongodb-expression-exp.-dateFromParts
412
412
  */
413
413
  $dateFromParts: {
414
414
  /**
@@ -517,7 +517,7 @@ declare module 'mongoose' {
517
517
  * Converts a date/time string to a date object.
518
518
  *
519
519
  * @version 3.6
520
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateFromString/#mongodb-expression-exp.-dateFromString
520
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateFromString/#mongodb-expression-exp.-dateFromString
521
521
  */
522
522
  $dateFromString: {
523
523
  dateString: StringExpression<string>;
@@ -554,7 +554,7 @@ declare module 'mongoose' {
554
554
  * Subtracts a number of time units from a date object.
555
555
  *
556
556
  * @version 5.0
557
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateSubtract/#mongodb-expression-exp.-dateSubtract
557
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateSubtract/#mongodb-expression-exp.-dateSubtract
558
558
  */
559
559
  $dateSubtract: {
560
560
  /**
@@ -592,7 +592,7 @@ declare module 'mongoose' {
592
592
  * Returns a document containing the constituent parts of a date.
593
593
  *
594
594
  * @version 3.6
595
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateToParts/#mongodb-expression-exp.-dateToParts
595
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateToParts/#mongodb-expression-exp.-dateToParts
596
596
  */
597
597
  $dateToParts: {
598
598
  /**
@@ -617,7 +617,7 @@ declare module 'mongoose' {
617
617
  * Returns the date as a formatted string.
618
618
  *
619
619
  * @version 3.6
620
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateToString/#mongodb-expression-exp.-dateToString
620
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateToString/#mongodb-expression-exp.-dateToString
621
621
  */
622
622
  $dateToString: {
623
623
  /**
@@ -654,7 +654,7 @@ declare module 'mongoose' {
654
654
  * Truncates a date.
655
655
  *
656
656
  * @version 5.0
657
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dateTrunc/#mongodb-expression-exp.-dateTrunc
657
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dateTrunc/#mongodb-expression-exp.-dateTrunc
658
658
  */
659
659
  $dateTrunc: {
660
660
  /**
@@ -704,7 +704,7 @@ declare module 'mongoose' {
704
704
  /**
705
705
  * Returns the day of the month for a date as a number between 1 and 31.
706
706
  *
707
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dayOfMonth/#mongodb-expression-exp.-dayOfMonth
707
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dayOfMonth/#mongodb-expression-exp.-dayOfMonth
708
708
  */
709
709
  $dayOfMonth: DateExpression | {
710
710
  /**
@@ -722,7 +722,7 @@ declare module 'mongoose' {
722
722
  /**
723
723
  * Returns the day of the week for a date as a number between 1 (Sunday) and 7 (Saturday).
724
724
  *
725
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dayOfWeek/#mongodb-expression-exp.-dayOfWeek
725
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dayOfWeek/#mongodb-expression-exp.-dayOfWeek
726
726
  */
727
727
  $dayOfWeek: DateExpression | {
728
728
  /**
@@ -740,7 +740,7 @@ declare module 'mongoose' {
740
740
  /**
741
741
  * Returns the day of the year for a date as a number between 1 and 366 (leap year).
742
742
  *
743
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/dayOfYear/#mongodb-expression-exp.-dayOfYear
743
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/dayOfYear/#mongodb-expression-exp.-dayOfYear
744
744
  */
745
745
  $dayOfYear: DateExpression | {
746
746
  /**
@@ -758,7 +758,7 @@ declare module 'mongoose' {
758
758
  /**
759
759
  * Returns the hour for a date as a number between 0 and 23.
760
760
  *
761
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/hour/#mongodb-expression-exp.-hour
761
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/hour/#mongodb-expression-exp.-hour
762
762
  */
763
763
  $hour: DateExpression | {
764
764
  /**
@@ -777,7 +777,7 @@ declare module 'mongoose' {
777
777
  * Returns the weekday number in ISO 8601 format, ranging from 1 (for Monday) to 7 (for Sunday).
778
778
  *
779
779
  * @version 3.4
780
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/isoDayOfWeek/#mongodb-expression-exp.-isoDayOfWeek
780
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoDayOfWeek/#mongodb-expression-exp.-isoDayOfWeek
781
781
  */
782
782
  $isoDayOfWeek: DateExpression | {
783
783
  /**
@@ -796,7 +796,7 @@ declare module 'mongoose' {
796
796
  * Returns the week number in ISO 8601 format, ranging from 1 to 53. Week numbers start at 1 with the week (Monday through Sunday) that contains the year's first Thursday.
797
797
  *
798
798
  * @version 3.4
799
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/isoWeek/#mongodb-expression-exp.-isoWeek
799
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeek/#mongodb-expression-exp.-isoWeek
800
800
  */
801
801
  $isoWeek: DateExpression | {
802
802
  /**
@@ -815,7 +815,7 @@ declare module 'mongoose' {
815
815
  * Returns the year number in ISO 8601 format. The year starts with the Monday of week 1 (ISO 8601) and ends with the Sunday of the last week (ISO 8601).
816
816
  *
817
817
  * @version 3.4
818
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/isoWeekYear/#mongodb-expression-exp.-isoWeekYear
818
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeekYear/#mongodb-expression-exp.-isoWeekYear
819
819
  */
820
820
  $isoWeekYear: DateExpression | {
821
821
  /**
@@ -833,7 +833,7 @@ declare module 'mongoose' {
833
833
  /**
834
834
  * Returns the milliseconds of a date as a number between 0 and 999.
835
835
  *
836
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/millisecond/#mongodb-expression-exp.-millisecond
836
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/millisecond/#mongodb-expression-exp.-millisecond
837
837
  */
838
838
  $millisecond: DateExpression | {
839
839
  /**
@@ -851,7 +851,7 @@ declare module 'mongoose' {
851
851
  /**
852
852
  * Returns the minute for a date as a number between 0 and 59.
853
853
  *
854
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/minute/#mongodb-expression-exp.-minute
854
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/minute/#mongodb-expression-exp.-minute
855
855
  */
856
856
  $minute: DateExpression | {
857
857
  /**
@@ -869,7 +869,7 @@ declare module 'mongoose' {
869
869
  /**
870
870
  * Returns the month for a date as a number between 1 (January) and 12 (December).
871
871
  *
872
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/month/#mongodb-expression-exp.-month
872
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/month/#mongodb-expression-exp.-month
873
873
  */
874
874
  $month: DateExpression | {
875
875
  /**
@@ -887,7 +887,7 @@ declare module 'mongoose' {
887
887
  /**
888
888
  * Returns the seconds for a date as a number between 0 and 60 (leap seconds).
889
889
  *
890
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/second/#mongodb-expression-exp.-second
890
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/second/#mongodb-expression-exp.-second
891
891
  */
892
892
  $second: DateExpression | {
893
893
  /**
@@ -906,7 +906,7 @@ declare module 'mongoose' {
906
906
  * Converts value to a Date.
907
907
  *
908
908
  * @version 4.0
909
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toDate/#mongodb-expression-exp.-toDate
909
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toDate/#mongodb-expression-exp.-toDate
910
910
  */
911
911
  $toDate: Expression;
912
912
  }
@@ -915,7 +915,7 @@ declare module 'mongoose' {
915
915
  /**
916
916
  * Returns the week number for a date as a number between 0 (the partial week that precedes the first Sunday of the year) and 53 (leap year).
917
917
  *
918
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/week/#mongodb-expression-exp.-week
918
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/week/#mongodb-expression-exp.-week
919
919
  */
920
920
  $week: DateExpression | {
921
921
  /**
@@ -933,7 +933,7 @@ declare module 'mongoose' {
933
933
  /**
934
934
  * Returns the year for a date as a number (e.g. 2014).
935
935
  *
936
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/year/#mongodb-expression-exp.-year
936
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/year/#mongodb-expression-exp.-year
937
937
  */
938
938
  $year: DateExpression | {
939
939
  /**
@@ -951,7 +951,7 @@ declare module 'mongoose' {
951
951
  /**
952
952
  * Returns true only when all its expressions evaluate to true. Accepts any number of argument expressions.
953
953
  *
954
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/and/#mongodb-expression-exp.-and
954
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/and/#mongodb-expression-exp.-and
955
955
  */
956
956
  $and: (Expression | Record<string, Expression>)[];
957
957
  }
@@ -960,7 +960,7 @@ declare module 'mongoose' {
960
960
  /**
961
961
  * Returns the boolean value that is the opposite of its argument expression. Accepts a single argument expression.
962
962
  *
963
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/not/#mongodb-expression-exp.-not
963
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/not/#mongodb-expression-exp.-not
964
964
  */
965
965
  $not: [Expression];
966
966
  }
@@ -969,7 +969,7 @@ declare module 'mongoose' {
969
969
  /**
970
970
  * Returns true when any of its expressions evaluates to true. Accepts any number of argument expressions.
971
971
  *
972
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/or/#mongodb-expression-exp.-or
972
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/or/#mongodb-expression-exp.-or
973
973
  */
974
974
  $or: (Expression | Record<string, Expression>)[];
975
975
  }
@@ -978,7 +978,7 @@ declare module 'mongoose' {
978
978
  /**
979
979
  * Returns 0 if the two values are equivalent, 1 if the first value is greater than the second, and -1 if the first value is less than the second.
980
980
  *
981
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/cmp/#mongodb-expression-exp.-cmp
981
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/cmp/#mongodb-expression-exp.-cmp
982
982
  */
983
983
  $cmp: [Record<string, AnyExpression> | Expression, Record<string, AnyExpression> | Expression];
984
984
  }
@@ -987,7 +987,7 @@ declare module 'mongoose' {
987
987
  /**
988
988
  * Returns true if the values are equivalent.
989
989
  *
990
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/eq/#mongodb-expression-exp.-eq
990
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/eq/#mongodb-expression-exp.-eq
991
991
  */
992
992
  $eq: AnyExpression | [AnyExpression, AnyExpression];
993
993
  }
@@ -996,7 +996,7 @@ declare module 'mongoose' {
996
996
  /**
997
997
  * Returns true if the first value is greater than the second.
998
998
  *
999
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/gt/#mongodb-expression-exp.-gt
999
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/gt/#mongodb-expression-exp.-gt
1000
1000
  */
1001
1001
  $gt: NumberExpression | [NumberExpression, NumberExpression];
1002
1002
  }
@@ -1005,7 +1005,7 @@ declare module 'mongoose' {
1005
1005
  /**
1006
1006
  * Returns true if the first value is greater than or equal to the second.
1007
1007
  *
1008
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/gte/#mongodb-expression-exp.-gte
1008
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/gte/#mongodb-expression-exp.-gte
1009
1009
  */
1010
1010
  $gte: NumberExpression | [NumberExpression, NumberExpression];
1011
1011
  }
@@ -1014,7 +1014,7 @@ declare module 'mongoose' {
1014
1014
  /**
1015
1015
  * Returns true if the first value is less than the second.
1016
1016
  *
1017
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/lt/#mongodb-expression-exp.-lt
1017
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/lt/#mongodb-expression-exp.-lt
1018
1018
  */
1019
1019
  $lt: NumberExpression | [NumberExpression, NumberExpression];
1020
1020
  }
@@ -1023,7 +1023,7 @@ declare module 'mongoose' {
1023
1023
  /**
1024
1024
  * Returns true if the first value is less than or equal to the second.
1025
1025
  *
1026
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/lte/#mongodb-expression-exp.-lte
1026
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/lte/#mongodb-expression-exp.-lte
1027
1027
  */
1028
1028
  $lte: NumberExpression | [NumberExpression, NumberExpression];
1029
1029
  }
@@ -1032,7 +1032,7 @@ declare module 'mongoose' {
1032
1032
  /**
1033
1033
  * Returns true if the values are not equivalent.
1034
1034
  *
1035
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/ne/#mongodb-expression-exp.-ne
1035
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/ne/#mongodb-expression-exp.-ne
1036
1036
  */
1037
1037
  $ne: Expression | [Expression, Expression | NullExpression] | null;
1038
1038
  }
@@ -1041,7 +1041,7 @@ declare module 'mongoose' {
1041
1041
  /**
1042
1042
  * A ternary operator that evaluates one expression, and depending on the result, returns the value of one of the other two expressions. Accepts either three expressions in an ordered list or three named parameters.
1043
1043
  *
1044
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/cond/#mongodb-expression-exp.-cond
1044
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/cond/#mongodb-expression-exp.-cond
1045
1045
  */
1046
1046
  $cond: { if: Expression, then: AnyExpression, else: AnyExpression } | [BooleanExpression, AnyExpression, AnyExpression];
1047
1047
  }
@@ -1050,7 +1050,7 @@ declare module 'mongoose' {
1050
1050
  /**
1051
1051
  * Returns either the non-null result of the first expression or the result of the second expression if the first expression results in a null result. Null result encompasses instances of undefined values or missing fields. Accepts two expressions as arguments. The result of the second expression can be null.
1052
1052
  *
1053
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/ifNull/#mongodb-expression-exp.-ifNull
1053
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/ifNull/#mongodb-expression-exp.-ifNull
1054
1054
  */
1055
1055
  $ifNull: Expression[];
1056
1056
  }
@@ -1059,7 +1059,7 @@ declare module 'mongoose' {
1059
1059
  /**
1060
1060
  * Evaluates a series of case expressions. When it finds an expression which evaluates to true, $switch executes a specified expression and breaks out of the control flow.
1061
1061
  *
1062
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/switch/#mongodb-expression-exp.-switch
1062
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/switch/#mongodb-expression-exp.-switch
1063
1063
  */
1064
1064
  $switch: {
1065
1065
  /**
@@ -1082,7 +1082,7 @@ declare module 'mongoose' {
1082
1082
  * Returns the element at the specified array index.
1083
1083
  *
1084
1084
  * @version 3.2
1085
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/arrayElemAt/#mongodb-expression-exp.-arrayElemAt
1085
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/arrayElemAt/#mongodb-expression-exp.-arrayElemAt
1086
1086
  */
1087
1087
  $arrayElemAt: [ArrayExpression, NumberExpression];
1088
1088
  }
@@ -1092,7 +1092,7 @@ declare module 'mongoose' {
1092
1092
  * Converts an array of key value pairs to a document.
1093
1093
  *
1094
1094
  * @version 3.4.4
1095
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/arrayToObject/#mongodb-expression-exp.-arrayToObject
1095
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/arrayToObject/#mongodb-expression-exp.-arrayToObject
1096
1096
  */
1097
1097
  $arrayToObject: ArrayExpression;
1098
1098
  }
@@ -1102,7 +1102,7 @@ declare module 'mongoose' {
1102
1102
  * Concatenates arrays to return the concatenated array.
1103
1103
  *
1104
1104
  * @version 3.2
1105
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/concatArrays/#mongodb-expression-exp.-concatArrays
1105
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/concatArrays/#mongodb-expression-exp.-concatArrays
1106
1106
  */
1107
1107
  $concatArrays: Expression[];
1108
1108
  }
@@ -1112,7 +1112,7 @@ declare module 'mongoose' {
1112
1112
  * Selects a subset of the array to return an array with only the elements that match the filter condition.
1113
1113
  *
1114
1114
  * @version 3.2
1115
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/filter/#mongodb-expression-exp.-filter
1115
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/filter/#mongodb-expression-exp.-filter
1116
1116
  */
1117
1117
  $filter: {
1118
1118
  /**
@@ -1145,7 +1145,7 @@ declare module 'mongoose' {
1145
1145
  * Returns the first array element. Distinct from $first accumulator.
1146
1146
  *
1147
1147
  * @version 5.0
1148
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/first/#mongodb-expression-exp.-first
1148
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/first/#mongodb-expression-exp.-first
1149
1149
  */
1150
1150
  $first: Expression;
1151
1151
  }
@@ -1155,7 +1155,7 @@ declare module 'mongoose' {
1155
1155
  * Returns a boolean indicating whether a specified value is in an array.
1156
1156
  *
1157
1157
  * @version 3.4
1158
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/in/#mongodb-expression-exp.-in
1158
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/in/#mongodb-expression-exp.-in
1159
1159
  */
1160
1160
  $in: [Expression, ArrayExpression];
1161
1161
  }
@@ -1165,7 +1165,7 @@ declare module 'mongoose' {
1165
1165
  * Searches an array for an occurrence of a specified value and returns the array index of the first occurrence. If the substring is not found, returns -1.
1166
1166
  *
1167
1167
  * @version 3.4
1168
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfArray/#mongodb-expression-exp.-indexOfArray
1168
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/indexOfArray/#mongodb-expression-exp.-indexOfArray
1169
1169
  */
1170
1170
  $indexOfArray: [ArrayExpression, Expression] | [ArrayExpression, Expression, NumberExpression] | [ArrayExpression, Expression, NumberExpression, NumberExpression];
1171
1171
  }
@@ -1175,7 +1175,7 @@ declare module 'mongoose' {
1175
1175
  * Determines if the operand is an array. Returns a boolean.
1176
1176
  *
1177
1177
  * @version 3.2
1178
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/isArray/#mongodb-expression-exp.-isArray
1178
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/isArray/#mongodb-expression-exp.-isArray
1179
1179
  */
1180
1180
  $isArray: [Expression];
1181
1181
  }
@@ -1185,7 +1185,7 @@ declare module 'mongoose' {
1185
1185
  * Returns the last array element. Distinct from $last accumulator.
1186
1186
  *
1187
1187
  * @version 5.0
1188
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/last/#mongodb-expression-exp.-last
1188
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/last/#mongodb-expression-exp.-last
1189
1189
  */
1190
1190
  $last: Expression;
1191
1191
  }
@@ -1214,7 +1214,7 @@ declare module 'mongoose' {
1214
1214
  /**
1215
1215
  * Applies a subexpression to each element of an array and returns the array of resulting values in order. Accepts named parameters.
1216
1216
  *
1217
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/map/#mongodb-expression-exp.-map
1217
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/map/#mongodb-expression-exp.-map
1218
1218
  */
1219
1219
  $map: {
1220
1220
  /**
@@ -1237,7 +1237,7 @@ declare module 'mongoose' {
1237
1237
  * Converts a document to an array of documents representing key-value pairs.
1238
1238
  *
1239
1239
  * @version 3.4.4
1240
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/objectToArray/#mongodb-expression-exp.-objectToArray
1240
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/objectToArray/#mongodb-expression-exp.-objectToArray
1241
1241
  */
1242
1242
  $objectToArray: ObjectExpression;
1243
1243
  }
@@ -1246,7 +1246,7 @@ declare module 'mongoose' {
1246
1246
  /**
1247
1247
  * Outputs an array containing a sequence of integers according to user-defined inputs.
1248
1248
  *
1249
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/range/#mongodb-expression-exp.-range
1249
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/range/#mongodb-expression-exp.-range
1250
1250
  */
1251
1251
  $range: [NumberExpression, NumberExpression] | [NumberExpression, NumberExpression, NumberExpression];
1252
1252
  }
@@ -1256,7 +1256,7 @@ declare module 'mongoose' {
1256
1256
  * Applies an expression to each element in an array and combines them into a single value.
1257
1257
  *
1258
1258
  * @version 3.4
1259
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/reduce/#mongodb-expression-exp.-reduce
1259
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/reduce/#mongodb-expression-exp.-reduce
1260
1260
  */
1261
1261
  $reduce: {
1262
1262
  /**
@@ -1287,7 +1287,7 @@ declare module 'mongoose' {
1287
1287
  * Returns an array with the elements in reverse order.
1288
1288
  *
1289
1289
  * @version 3.4
1290
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/reverseArray/#mongodb-expression-exp.-reverseArray
1290
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/reverseArray/#mongodb-expression-exp.-reverseArray
1291
1291
  */
1292
1292
  $reverseArray: ArrayExpression;
1293
1293
  }
@@ -1296,7 +1296,7 @@ declare module 'mongoose' {
1296
1296
  /**
1297
1297
  * Returns the number of elements in the array. Accepts a single expression as argument.
1298
1298
  *
1299
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/size/#mongodb-expression-exp.-size
1299
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/size/#mongodb-expression-exp.-size
1300
1300
  */
1301
1301
  $size: ArrayExpression;
1302
1302
  }
@@ -1306,7 +1306,7 @@ declare module 'mongoose' {
1306
1306
  * Returns a subset of an array.
1307
1307
  *
1308
1308
  * @version 3.2
1309
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/slice/#mongodb-expression-exp.-slice
1309
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/slice/#mongodb-expression-exp.-slice
1310
1310
  */
1311
1311
  $slice: [ArrayExpression, NumberExpression] | [ArrayExpression, NumberExpression, NumberExpression];
1312
1312
  }
@@ -1316,7 +1316,7 @@ declare module 'mongoose' {
1316
1316
  * Merge two arrays together.
1317
1317
  *
1318
1318
  * @version 3.4
1319
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/zip/#mongodb-expression-exp.-zip
1319
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/zip/#mongodb-expression-exp.-zip
1320
1320
  */
1321
1321
  $zip: {
1322
1322
  /**
@@ -1348,7 +1348,7 @@ declare module 'mongoose' {
1348
1348
  /**
1349
1349
  * Concatenates any number of strings.
1350
1350
  *
1351
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/concat/#mongodb-expression-exp.-concat
1351
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/concat/#mongodb-expression-exp.-concat
1352
1352
  */
1353
1353
  $concat: StringExpression[];
1354
1354
  }
@@ -1358,7 +1358,7 @@ declare module 'mongoose' {
1358
1358
  * Searches a string for an occurrence of a substring and returns the UTF-8 byte index of the first occurrence. If the substring is not found, returns -1.
1359
1359
  *
1360
1360
  * @version 3.4
1361
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfBytes/#mongodb-expression-exp.-indexOfBytes
1361
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/indexOfBytes/#mongodb-expression-exp.-indexOfBytes
1362
1362
  */
1363
1363
  $indexOfBytes: [StringExpression, StringExpression] | [StringExpression, StringExpression, NumberExpression] | [StringExpression, StringExpression, NumberExpression, NumberExpression];
1364
1364
  }
@@ -1368,7 +1368,7 @@ declare module 'mongoose' {
1368
1368
  * Searches a string for an occurrence of a substring and returns the UTF-8 code point index of the first occurrence. If the substring is not found, returns -1
1369
1369
  *
1370
1370
  * @version 3.4
1371
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/indexOfCP/#mongodb-expression-exp.-indexOfCP
1371
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/indexOfCP/#mongodb-expression-exp.-indexOfCP
1372
1372
  */
1373
1373
  $indexOfCP: [StringExpression, StringExpression] | [StringExpression, StringExpression, NumberExpression] | [StringExpression, StringExpression, NumberExpression, NumberExpression];
1374
1374
  }
@@ -1378,7 +1378,7 @@ declare module 'mongoose' {
1378
1378
  * Removes whitespace or the specified characters from the beginning of a string.
1379
1379
  *
1380
1380
  * @version 4.0
1381
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/ltrim/#mongodb-expression-exp.-ltrim
1381
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/ltrim/#mongodb-expression-exp.-ltrim
1382
1382
  */
1383
1383
  $ltrim: {
1384
1384
  /**
@@ -1401,7 +1401,7 @@ declare module 'mongoose' {
1401
1401
  * Applies a regular expression (regex) to a string and returns information on the first matched substring.
1402
1402
  *
1403
1403
  * @version 4.2
1404
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/regexFind/#mongodb-expression-exp.-regexFind
1404
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/regexFind/#mongodb-expression-exp.-regexFind
1405
1405
  */
1406
1406
  $regexFind: {
1407
1407
  /**
@@ -1448,7 +1448,7 @@ declare module 'mongoose' {
1448
1448
  * Applies a regular expression (regex) to a string and returns information on the all matched substrings.
1449
1449
  *
1450
1450
  * @version 4.2
1451
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/regexFindAll/#mongodb-expression-exp.-regexFindAll
1451
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/regexFindAll/#mongodb-expression-exp.-regexFindAll
1452
1452
  */
1453
1453
  $regexFindAll: {
1454
1454
  /**
@@ -1495,7 +1495,7 @@ declare module 'mongoose' {
1495
1495
  * Applies a regular expression (regex) to a string and returns a boolean that indicates if a match is found or not.
1496
1496
  *
1497
1497
  * @version 4.2
1498
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/regexMatch/#mongodb-expression-exp.-regexMatch
1498
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/regexMatch/#mongodb-expression-exp.-regexMatch
1499
1499
  */
1500
1500
  $regexMatch: {
1501
1501
  /**
@@ -1542,7 +1542,7 @@ declare module 'mongoose' {
1542
1542
  * Replaces the first instance of a matched string in a given input.
1543
1543
  *
1544
1544
  * @version 4.4
1545
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/replaceOne/#mongodb-expression-exp.-replaceOne
1545
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/replaceOne/#mongodb-expression-exp.-replaceOne
1546
1546
  */
1547
1547
  $replaceOne: {
1548
1548
  /**
@@ -1565,7 +1565,7 @@ declare module 'mongoose' {
1565
1565
  * Replaces all instances of a matched string in a given input.
1566
1566
  *
1567
1567
  * @version 4.4
1568
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/replaceAll/#mongodb-expression-exp.-replaceAll
1568
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/replaceAll/#mongodb-expression-exp.-replaceAll
1569
1569
  */
1570
1570
  $replaceAll: {
1571
1571
  /**
@@ -1588,7 +1588,7 @@ declare module 'mongoose' {
1588
1588
  * Removes whitespace or the specified characters from the end of a string.
1589
1589
  *
1590
1590
  * @version 4.0
1591
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/rtrim/#mongodb-expression-exp.-rtrim
1591
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/rtrim/#mongodb-expression-exp.-rtrim
1592
1592
  */
1593
1593
  $rtrim: {
1594
1594
  /**
@@ -1611,7 +1611,7 @@ declare module 'mongoose' {
1611
1611
  * Splits a string into substrings based on a delimiter. Returns an array of substrings. If the delimiter is not found within the string, returns an array containing the original string.
1612
1612
  *
1613
1613
  * @version 3.4
1614
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/split/#mongodb-expression-exp.-split
1614
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/split/#mongodb-expression-exp.-split
1615
1615
  */
1616
1616
  $split: [StringExpression, StringExpression];
1617
1617
  }
@@ -1621,7 +1621,7 @@ declare module 'mongoose' {
1621
1621
  * Returns the number of UTF-8 encoded bytes in a string.
1622
1622
  *
1623
1623
  * @version 3.4
1624
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/strLenBytes/#mongodb-expression-exp.-strLenBytes
1624
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/strLenBytes/#mongodb-expression-exp.-strLenBytes
1625
1625
  */
1626
1626
  $strLenBytes: StringExpression;
1627
1627
  }
@@ -1631,7 +1631,7 @@ declare module 'mongoose' {
1631
1631
  * Returns the number of UTF-8 code points in a string.
1632
1632
  *
1633
1633
  * @version 3.4
1634
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/strLenCP/#mongodb-expression-exp.-strLenCP
1634
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/strLenCP/#mongodb-expression-exp.-strLenCP
1635
1635
  */
1636
1636
  $strLenCP: StringExpression;
1637
1637
  }
@@ -1640,7 +1640,7 @@ declare module 'mongoose' {
1640
1640
  /**
1641
1641
  * Performs case-insensitive string comparison and returns: 0 if two strings are equivalent, 1 if the first string is greater than the second, and -1 if the first string is less than the second.
1642
1642
  *
1643
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/strcasecmp/#mongodb-expression-exp.-strcasecmp
1643
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/strcasecmp/#mongodb-expression-exp.-strcasecmp
1644
1644
  */
1645
1645
  $strcasecmp: [StringExpression, StringExpression];
1646
1646
  }
@@ -1651,7 +1651,7 @@ declare module 'mongoose' {
1651
1651
  *
1652
1652
  * @deprecated 3.4
1653
1653
  * @alias {Expression.SubstrBytes}
1654
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/substr/#mongodb-expression-exp.-substr
1654
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/substr/#mongodb-expression-exp.-substr
1655
1655
  */
1656
1656
  $substr: [StringExpression, number, number];
1657
1657
  }
@@ -1661,7 +1661,7 @@ declare module 'mongoose' {
1661
1661
  * Returns the substring of a string. Starts with the character at the specified UTF-8 byte index (zero-based) in the string and continues for the specified number of bytes.
1662
1662
  *
1663
1663
  * @version 3.4
1664
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/substrBytes/#mongodb-expression-exp.-substrBytes
1664
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/substrBytes/#mongodb-expression-exp.-substrBytes
1665
1665
  */
1666
1666
  $substrBytes: [StringExpression, number, number];
1667
1667
  }
@@ -1671,7 +1671,7 @@ declare module 'mongoose' {
1671
1671
  * Returns the substring of a string. Starts with the character at the specified UTF-8 code point (CP) index (zero-based) in the string and continues for the number of code points specified.
1672
1672
  *
1673
1673
  * @version 3.4
1674
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/substrCP/#mongodb-expression-exp.-substrCP
1674
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/substrCP/#mongodb-expression-exp.-substrCP
1675
1675
  */
1676
1676
  $substrCP: [StringExpression, number, number];
1677
1677
  }
@@ -1680,7 +1680,7 @@ declare module 'mongoose' {
1680
1680
  /**
1681
1681
  * Converts a string to lowercase. Accepts a single argument expression.
1682
1682
  *
1683
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toLower/#mongodb-expression-exp.-toLower
1683
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toLower/#mongodb-expression-exp.-toLower
1684
1684
  */
1685
1685
  $toLower: StringExpression;
1686
1686
  }
@@ -1690,7 +1690,7 @@ declare module 'mongoose' {
1690
1690
  * Converts value to a string.
1691
1691
  *
1692
1692
  * @version 4.0
1693
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toString/#mongodb-expression-exp.-toString
1693
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toString/#mongodb-expression-exp.-toString
1694
1694
  */
1695
1695
  $toString: Expression;
1696
1696
  }
@@ -1700,7 +1700,7 @@ declare module 'mongoose' {
1700
1700
  * Removes whitespace or the specified characters from the beginning and end of a string.
1701
1701
  *
1702
1702
  * @version 4.0
1703
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/trim/#mongodb-expression-exp.-trim
1703
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/trim/#mongodb-expression-exp.-trim
1704
1704
  */
1705
1705
  $trim: {
1706
1706
  /**
@@ -1722,7 +1722,7 @@ declare module 'mongoose' {
1722
1722
  /**
1723
1723
  * Converts a string to uppercase. Accepts a single argument expression.
1724
1724
  *
1725
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toUpper/#mongodb-expression-exp.-toUpper
1725
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toUpper/#mongodb-expression-exp.-toUpper
1726
1726
  */
1727
1727
  $toUpper: StringExpression;
1728
1728
  }
@@ -1733,7 +1733,7 @@ declare module 'mongoose' {
1733
1733
  * Returns a value without parsing. Use for values that the aggregation pipeline may interpret as an
1734
1734
  * expression.
1735
1735
  *
1736
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/literal/#mongodb-expression-exp.-literal
1736
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/literal/#mongodb-expression-exp.-literal
1737
1737
  */
1738
1738
  $literal: any;
1739
1739
  }
@@ -1745,7 +1745,7 @@ declare module 'mongoose' {
1745
1745
  * the value of the field from $$CURRENT.
1746
1746
  *
1747
1747
  * @version 4.4.2
1748
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/getField/#mongodb-expression-exp.-getField
1748
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/getField/#mongodb-expression-exp.-getField
1749
1749
  */
1750
1750
  $getField: {
1751
1751
  /**
@@ -1768,7 +1768,7 @@ declare module 'mongoose' {
1768
1768
  * Returns a random float between 0 and 1 each time it is called.
1769
1769
  *
1770
1770
  * @version 4.4.2
1771
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/rand/#mongodb-expression-exp.-rand
1771
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/rand/#mongodb-expression-exp.-rand
1772
1772
  */
1773
1773
  $rand: Record<string | number | symbol, never>;
1774
1774
  }
@@ -1780,7 +1780,7 @@ declare module 'mongoose' {
1780
1780
  * rate expressed as a percentage of the total number of documents.
1781
1781
  *
1782
1782
  * @version 4.4.2
1783
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/sampleRate/#mongodb-expression-exp.-sampleRate
1783
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/sampleRate/#mongodb-expression-exp.-sampleRate
1784
1784
  */
1785
1785
  $sampleRate: number;
1786
1786
  }
@@ -1791,7 +1791,7 @@ declare module 'mongoose' {
1791
1791
  * Combines multiple documents into a single document.
1792
1792
  *
1793
1793
  * @version 3.6
1794
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/mergeObjects/#mongodb-expression-exp.-mergeObjects
1794
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/mergeObjects/#mongodb-expression-exp.-mergeObjects
1795
1795
  */
1796
1796
  $mergeObjects: ObjectExpression | ObjectExpression[] | ArrayExpression;
1797
1797
  }
@@ -1802,7 +1802,7 @@ declare module 'mongoose' {
1802
1802
  * Adds, updates, or removes a specified field in a document.
1803
1803
  *
1804
1804
  * @version 5.0
1805
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/setField/#mongodb-expression-exp.-setField
1805
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/setField/#mongodb-expression-exp.-setField
1806
1806
  */
1807
1807
  $setField: {
1808
1808
  /**
@@ -1828,7 +1828,7 @@ declare module 'mongoose' {
1828
1828
  * Removes a specified field in a document.
1829
1829
  *
1830
1830
  * @version 5.0
1831
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/unsetField/#mongodb-expression-exp.-unsetField
1831
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/unsetField/#mongodb-expression-exp.-unsetField
1832
1832
  */
1833
1833
  $unsetField: {
1834
1834
  /**
@@ -1850,7 +1850,7 @@ declare module 'mongoose' {
1850
1850
  * Binds variables for use in the specified expression, and returns the result of the expression.
1851
1851
  *
1852
1852
  * @version 5.0
1853
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/let/#mongodb-expression-exp.-let
1853
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/let/#mongodb-expression-exp.-let
1854
1854
  */
1855
1855
  $let: {
1856
1856
  /**
@@ -1870,7 +1870,7 @@ declare module 'mongoose' {
1870
1870
  * Evaluates an array as a set and returns true if no element in the array is false. Otherwise, returns false. An
1871
1871
  * empty array returns true.
1872
1872
  *
1873
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/allElementsTrue/#mongodb-expression-exp.-allElementsTrue
1873
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/allElementsTrue/#mongodb-expression-exp.-allElementsTrue
1874
1874
  */
1875
1875
  $allElementsTrue: ArrayExpression;
1876
1876
  }
@@ -1880,7 +1880,7 @@ declare module 'mongoose' {
1880
1880
  * Evaluates an array as a set and returns true if any of the elements are true and false otherwise. An empty
1881
1881
  * array returns false.
1882
1882
  *
1883
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/anyElementsTrue/#mongodb-expression-exp.-anyElementsTrue
1883
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/anyElementsTrue/#mongodb-expression-exp.-anyElementsTrue
1884
1884
  */
1885
1885
  $anyElementTrue: ArrayExpression;
1886
1886
  }
@@ -1890,7 +1890,7 @@ declare module 'mongoose' {
1890
1890
  * Takes two sets and returns an array containing the elements that only exist in the first set; i.e. performs a
1891
1891
  * relative complement of the second set relative to the first.
1892
1892
  *
1893
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/setDifference/#mongodb-expression-exp.-setDifference
1893
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/setDifference/#mongodb-expression-exp.-setDifference
1894
1894
  */
1895
1895
  $setDifference: [ArrayExpression, ArrayExpression];
1896
1896
  }
@@ -1899,7 +1899,7 @@ declare module 'mongoose' {
1899
1899
  /**
1900
1900
  * Compares two or more arrays and returns true if they have the same distinct elements and false otherwise.
1901
1901
  *
1902
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/setEquals/#mongodb-expression-exp.-setEquals
1902
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/setEquals/#mongodb-expression-exp.-setEquals
1903
1903
  */
1904
1904
  $setEquals: ArrayExpression[];
1905
1905
  }
@@ -1908,7 +1908,7 @@ declare module 'mongoose' {
1908
1908
  /**
1909
1909
  * Takes two or more arrays and returns an array that contains the elements that appear in every input array.
1910
1910
  *
1911
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/setIntersection/#mongodb-expression-exp.-setIntersection
1911
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/setIntersection/#mongodb-expression-exp.-setIntersection
1912
1912
  */
1913
1913
  $setIntersection: ArrayExpression[];
1914
1914
  }
@@ -1918,7 +1918,7 @@ declare module 'mongoose' {
1918
1918
  * Takes two arrays and returns true when the first array is a subset of the second, including when the first
1919
1919
  * array equals the second array, and false otherwise.
1920
1920
  *
1921
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/setIsSubset/#mongodb-expression-exp.-setIsSubset
1921
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/setIsSubset/#mongodb-expression-exp.-setIsSubset
1922
1922
  */
1923
1923
  $setIsSubset: [ArrayExpression, ArrayExpression];
1924
1924
  }
@@ -1927,7 +1927,7 @@ declare module 'mongoose' {
1927
1927
  /**
1928
1928
  * Takes two or more arrays and returns an array containing the elements that appear in any input array.
1929
1929
  *
1930
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/setUnion/#mongodb-expression-exp.-setUnion
1930
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/setUnion/#mongodb-expression-exp.-setUnion
1931
1931
  */
1932
1932
  $setUnion: ArrayExpression[];
1933
1933
  }
@@ -1940,7 +1940,7 @@ declare module 'mongoose' {
1940
1940
  * also $function.
1941
1941
  *
1942
1942
  * @version 4.4
1943
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/accumulator/#mongodb-expression-exp.-accumulator
1943
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/accumulator/#mongodb-expression-exp.-accumulator
1944
1944
  */
1945
1945
  $accumulator: {
1946
1946
  /**
@@ -1985,7 +1985,7 @@ declare module 'mongoose' {
1985
1985
  * Returns an array of all unique values that results from applying an expression to each document in a group.
1986
1986
  *
1987
1987
  * @version 5.0
1988
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/addToSet/#mongodb-expression-exp.-addToSet
1988
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/addToSet/#mongodb-expression-exp.-addToSet
1989
1989
  */
1990
1990
  $addToSet: Expression | Record<string, Expression>;
1991
1991
  }
@@ -1995,7 +1995,7 @@ declare module 'mongoose' {
1995
1995
  * Returns the average value of the numeric values. $avg ignores non-numeric values.
1996
1996
  *
1997
1997
  * @version 5.0
1998
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/avg/#mongodb-expression-exp.-avg
1998
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/avg/#mongodb-expression-exp.-avg
1999
1999
  */
2000
2000
  $avg: Expression;
2001
2001
  }
@@ -2005,7 +2005,7 @@ declare module 'mongoose' {
2005
2005
  * Returns the number of documents in a group.
2006
2006
  *
2007
2007
  * @version 5.0
2008
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/count/#mongodb-expression-exp.-count
2008
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/count/#mongodb-expression-exp.-count
2009
2009
  */
2010
2010
  $count: Record<string | number | symbol, never> | Path;
2011
2011
  }
@@ -2016,7 +2016,7 @@ declare module 'mongoose' {
2016
2016
  * $setWindowFields stage window.
2017
2017
  *
2018
2018
  * @version 5.0
2019
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/covariancePop/#mongodb-expression-exp.-covariancePop
2019
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/covariancePop/#mongodb-expression-exp.-covariancePop
2020
2020
  */
2021
2021
  $covariancePop: [NumberExpression, NumberExpression];
2022
2022
  }
@@ -2027,7 +2027,7 @@ declare module 'mongoose' {
2027
2027
  * $setWindowFields stage window.
2028
2028
  *
2029
2029
  * @version 5.0
2030
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/covarianceSamp/#mongodb-expression-exp.-covarianceSamp
2030
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/covarianceSamp/#mongodb-expression-exp.-covarianceSamp
2031
2031
  */
2032
2032
  $covarianceSamp: [NumberExpression, NumberExpression];
2033
2033
  }
@@ -2038,7 +2038,7 @@ declare module 'mongoose' {
2038
2038
  * partition.
2039
2039
  *
2040
2040
  * @version 5.0
2041
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/denseRank/#mongodb-expression-exp.-denseRank
2041
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/denseRank/#mongodb-expression-exp.-denseRank
2042
2042
  */
2043
2043
  $denseRank: Record<string | number | symbol, never>;
2044
2044
  }
@@ -2048,7 +2048,7 @@ declare module 'mongoose' {
2048
2048
  * Returns the average rate of change within the specified window, which is calculated using the:
2049
2049
  *
2050
2050
  * @version 5.0
2051
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/derivative/#mongodb-expression-exp.-derivative
2051
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/derivative/#mongodb-expression-exp.-derivative
2052
2052
  */
2053
2053
  $derivative: {
2054
2054
  /**
@@ -2067,7 +2067,7 @@ declare module 'mongoose' {
2067
2067
  * Returns the position of a document (known as the document number) in the $setWindowFields stage partition.
2068
2068
  *
2069
2069
  * @version 5.0
2070
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/documentNumber/#mongodb-expression-exp.-documentNumber
2070
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/documentNumber/#mongodb-expression-exp.-documentNumber
2071
2071
  */
2072
2072
  $documentNumber: Record<string | number | symbol, never>;
2073
2073
  }
@@ -2078,7 +2078,7 @@ declare module 'mongoose' {
2078
2078
  * the $setWindowFields stage.
2079
2079
  *
2080
2080
  * @version 5.0
2081
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/expMovingAvg/#mongodb-expression-exp.-expMovingAvg
2081
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/expMovingAvg/#mongodb-expression-exp.-expMovingAvg
2082
2082
  */
2083
2083
  $expMovingAvg: {
2084
2084
  /**
@@ -2132,7 +2132,7 @@ declare module 'mongoose' {
2132
2132
  * set of adjacent documents form a trapezoid using the:
2133
2133
  *
2134
2134
  * @version 5.0
2135
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/integral/#mongodb-expression-exp.-integral
2135
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/integral/#mongodb-expression-exp.-integral
2136
2136
  */
2137
2137
  $integral: {
2138
2138
  /**
@@ -2153,7 +2153,7 @@ declare module 'mongoose' {
2153
2153
  * values of different types.
2154
2154
  *
2155
2155
  * @version 5.0
2156
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/max/#mongodb-expression-exp.-max
2156
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/max/#mongodb-expression-exp.-max
2157
2157
  */
2158
2158
  $max: Expression | Expression[];
2159
2159
  }
@@ -2164,7 +2164,7 @@ declare module 'mongoose' {
2164
2164
  * values of different types.
2165
2165
  *
2166
2166
  * @version 5.0
2167
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/min/#mongodb-expression-exp.-min
2167
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/min/#mongodb-expression-exp.-min
2168
2168
  */
2169
2169
  $min: Expression | Expression[];
2170
2170
  }
@@ -2174,7 +2174,7 @@ declare module 'mongoose' {
2174
2174
  * Returns an array of all values that result from applying an expression to documents.
2175
2175
  *
2176
2176
  * @version 5.0
2177
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/push/#mongodb-expression-exp.-push
2177
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/push/#mongodb-expression-exp.-push
2178
2178
  */
2179
2179
  $push: Expression | Record<string, Expression>;
2180
2180
  }
@@ -2185,7 +2185,7 @@ declare module 'mongoose' {
2185
2185
  * partition.
2186
2186
  *
2187
2187
  * @version 5.0
2188
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/rank/#mongodb-expression-exp.-rank
2188
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/rank/#mongodb-expression-exp.-rank
2189
2189
  */
2190
2190
  $rank: Record<string | number | symbol, never>;
2191
2191
  }
@@ -2196,7 +2196,7 @@ declare module 'mongoose' {
2196
2196
  * document in the $setWindowFields stage partition.
2197
2197
  *
2198
2198
  * @version 5.0
2199
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/shift/#mongodb-expression-exp.-shift
2199
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/shift/#mongodb-expression-exp.-shift
2200
2200
  */
2201
2201
  $shift: {
2202
2202
  /**
@@ -2222,7 +2222,7 @@ declare module 'mongoose' {
2222
2222
  * ignores non-numeric values.
2223
2223
  *
2224
2224
  * @version 5.0
2225
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/stdDevPop/#mongodb-expression-exp.-stdDevPop
2225
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/stdDevPop/#mongodb-expression-exp.-stdDevPop
2226
2226
  */
2227
2227
  $stdDevPop: Expression;
2228
2228
  }
@@ -2233,7 +2233,7 @@ declare module 'mongoose' {
2233
2233
  * population of data from which to generalize about the population. $stdDevSamp ignores non-numeric values.
2234
2234
  *
2235
2235
  * @version 5.0
2236
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/stdDevSamp/#mongodb-expression-exp.-stdDevSamp
2236
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/stdDevSamp/#mongodb-expression-exp.-stdDevSamp
2237
2237
  */
2238
2238
  $stdDevSamp: Expression;
2239
2239
  }
@@ -2243,7 +2243,7 @@ declare module 'mongoose' {
2243
2243
  * Calculates and returns the collective sum of numeric values. $sum ignores non-numeric values.
2244
2244
  *
2245
2245
  * @version 5.0
2246
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/sum/#mongodb-expression-exp.-sum
2246
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/sum/#mongodb-expression-exp.-sum
2247
2247
  */
2248
2248
  $sum: number | Expression | Expression[];
2249
2249
  }
@@ -2257,7 +2257,7 @@ declare module 'mongoose' {
2257
2257
  * - Long
2258
2258
  *
2259
2259
  * @version 4.4
2260
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/convert/#mongodb-expression-exp.-convert
2260
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/convert/#mongodb-expression-exp.-convert
2261
2261
  */
2262
2262
  $convert: {
2263
2263
  input: Expression;
@@ -2276,7 +2276,7 @@ declare module 'mongoose' {
2276
2276
  * - Long
2277
2277
  *
2278
2278
  * @version 4.4
2279
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/isNumber/#mongodb-expression-exp.-isNumber
2279
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/isNumber/#mongodb-expression-exp.-isNumber
2280
2280
  */
2281
2281
  $isNumber: Expression;
2282
2282
  }
@@ -2286,7 +2286,7 @@ declare module 'mongoose' {
2286
2286
  * Converts a value to a boolean.
2287
2287
  *
2288
2288
  * @version 4.0
2289
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toBool/#mongodb-expression-exp.-toBool
2289
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toBool/#mongodb-expression-exp.-toBool
2290
2290
  */
2291
2291
  $toBool: Expression;
2292
2292
  }
@@ -2297,7 +2297,7 @@ declare module 'mongoose' {
2297
2297
  * is null or missing, $toDecimal returns null.
2298
2298
  *
2299
2299
  * @version 4.0
2300
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toDecimal/#mongodb-expression-exp.-toDecimal
2300
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toDecimal/#mongodb-expression-exp.-toDecimal
2301
2301
  */
2302
2302
  $toDecimal: Expression;
2303
2303
  }
@@ -2308,7 +2308,7 @@ declare module 'mongoose' {
2308
2308
  * null or missing, $toDouble returns null.
2309
2309
  *
2310
2310
  * @version 4.0
2311
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toDouble/#mongodb-expression-exp.-toDouble
2311
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toDouble/#mongodb-expression-exp.-toDouble
2312
2312
  */
2313
2313
  $toDouble: Expression;
2314
2314
  }
@@ -2319,7 +2319,7 @@ declare module 'mongoose' {
2319
2319
  * missing, $toLong returns null.
2320
2320
  *
2321
2321
  * @version 4.0
2322
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toInt/#mongodb-expression-exp.-toInt
2322
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toInt/#mongodb-expression-exp.-toInt
2323
2323
  */
2324
2324
  $toInt: Expression;
2325
2325
  }
@@ -2330,7 +2330,7 @@ declare module 'mongoose' {
2330
2330
  * missing, $toLong returns null.
2331
2331
  *
2332
2332
  * @version 4.0
2333
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toLong/#mongodb-expression-exp.-toLong
2333
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toLong/#mongodb-expression-exp.-toLong
2334
2334
  */
2335
2335
  $toLong: Expression;
2336
2336
  }
@@ -2341,7 +2341,7 @@ declare module 'mongoose' {
2341
2341
  * value is null or missing, $toObjectId returns null.
2342
2342
  *
2343
2343
  * @version 4.0
2344
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toObjectId/#mongodb-expression-exp.-toObjectId
2344
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toObjectId/#mongodb-expression-exp.-toObjectId
2345
2345
  */
2346
2346
  $toObjectId: Expression;
2347
2347
  }
@@ -2367,7 +2367,7 @@ declare module 'mongoose' {
2367
2367
  * null or missing, $toString returns null.
2368
2368
  *
2369
2369
  * @version 4.0
2370
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/toString/#mongodb-expression-exp.-toString
2370
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/toString/#mongodb-expression-exp.-toString
2371
2371
  */
2372
2372
  $toString: Expression;
2373
2373
  }
@@ -2377,7 +2377,7 @@ declare module 'mongoose' {
2377
2377
  * Returns a string that specifies the BSON type of the argument.
2378
2378
  *
2379
2379
  * @version 3.4
2380
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/type/#mongodb-expression-exp.-type
2380
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/type/#mongodb-expression-exp.-type
2381
2381
  */
2382
2382
  $type: Expression;
2383
2383
  }
@@ -2387,7 +2387,7 @@ declare module 'mongoose' {
2387
2387
  * Returns the size of a given string or binary data value's content in bytes.
2388
2388
  *
2389
2389
  * @version 4.4
2390
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/binarySize/#mongodb-expression-exp.-binarySize
2390
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/binarySize/#mongodb-expression-exp.-binarySize
2391
2391
  */
2392
2392
  $binarySize: NullExpression | StringExpression | BinaryExpression;
2393
2393
  }
@@ -2398,7 +2398,7 @@ declare module 'mongoose' {
2398
2398
  * $bsonSize as an alternative to the Object.bsonSize() method.
2399
2399
  *
2400
2400
  * @version 4.4
2401
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/bsonSize/#mongodb-expression-exp.-bsonSize
2401
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/bsonSize/#mongodb-expression-exp.-bsonSize
2402
2402
  */
2403
2403
  $bsonSize: NullExpression | ObjectExpression;
2404
2404
  }
@@ -2408,7 +2408,7 @@ declare module 'mongoose' {
2408
2408
  * Defines a custom aggregation function or expression in JavaScript.
2409
2409
  *
2410
2410
  * @version 4.4
2411
- * @see https://docs.mongodb.com/manual/reference/operator/aggregation/function/#mongodb-expression-exp.-function
2411
+ * @see https://www.mongodb.com/docs/manual/reference/operator/aggregation/function/#mongodb-expression-exp.-function
2412
2412
  */
2413
2413
  $function: {
2414
2414
  /**
@@ -2868,6 +2868,7 @@ declare module 'mongoose' {
2868
2868
  Expression.StdDevPop |
2869
2869
  Expression.StdDevSamp |
2870
2870
  Expression.Sum |
2871
+ Expression.Top |
2871
2872
  Expression.TopN;
2872
2873
 
2873
2874
  export type tzExpression = UTCOffset | StringExpressionOperatorReturningBoolean | string;