You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`name`|`string`| The name of the argument. If it starts with `$`, the dollar is trimmed from the class property name |
25
+
|`type`| list of `string`| The list of accepted types |
26
+
|`description`|`string`| The description of the argument from MongoDB's documentation |
27
+
|`optional`|`boolean`| Whether the argument is optional or not |
28
+
|`valueMin`|`number`| The minimum value for a numeric argument |
29
+
|`valueMax`|`number`| The maximum value for a numeric argument |
30
+
|`variadic`|`string`| If sent, the argument is variadic. Defines the format `array` for a list or `object` for a map |
31
+
|`variadicMin`|`integer`| The minimum number of arguments for a variadic parameter |
32
+
|`default`|`scalar` or `array`| The default value for the argument |
33
+
|`mergeObject`|`bool`| Default `false`. If `true`, the value must be an object and the properties of the value object are merged into the parent operator. `$group` stage uses it for the fields |
34
+
20
35
### Test pipelines
21
36
22
-
Each operator can contain a `tests` section with a list if pipelines. To represent specific BSON objects,
23
-
it is necessary to use Yaml tags:
37
+
Each operator can contain a `tests` section with a list if pipelines. To represent specific BSON objects, it is necessary to use Yaml tags:
@@ -30,5 +44,4 @@ it is necessary to use Yaml tags:
30
44
| UTCDateTime |`!bson_utcdatetime 0`|
31
45
| Binary |`!bson_binary 'IA=='`|
32
46
33
-
To add new test cases to operators, you can get inspiration from the official MongoDB documentation and use
34
-
the `generator/js2yaml.html` web page to manually convert a pipeline array from JS to Yaml.
47
+
To add new test cases to operators, you can get inspiration from the official MongoDB documentation and use the `generator/js2yaml.html` web page to manually convert a pipeline array from JS to Yaml.
A string of terms that MongoDB parses and uses to query the text index. MongoDB performs a logical OR search of the terms unless specified as a phrase.
16
16
-
17
-
name: language
17
+
name: $language
18
18
type:
19
19
- string
20
20
optional: true
21
21
description: |
22
22
The language that determines the list of stop words for the search and the rules for the stemmer and tokenizer. If not specified, the search uses the default language of the index.
23
23
If you specify a default_language value of none, then the text index parses through each word in the field, including stop words, and ignores suffix stemming.
24
24
-
25
-
name: caseSensitive
25
+
name: $caseSensitive
26
26
type:
27
27
- bool
28
28
optional: true
29
29
description: |
30
30
A boolean flag to enable or disable case sensitive search. Defaults to false; i.e. the search defers to the case insensitivity of the text index.
Groups input documents by a specified identifier expression and applies the accumulator expression(s), if specified, to each group. Consumes all input documents and outputs one document per each distinct group. The output documents only contain the identifier field and, if specified, accumulated fields.
9
9
arguments:
@@ -15,6 +15,7 @@ arguments:
15
15
The _id expression specifies the group key. If you specify an _id value of null, or any other constant value, the $group stage returns a single document that aggregates values across all of the input documents.
0 commit comments