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:
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.
49
+
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.
0 commit comments