The function definition. You can specify the function definition as either BSON type Code or String.
Arguments passed to the function body. If the body function does not take an argument, you can specify an empty array [ ]
The language used in the body. You must specify lang: "js".
Generated using TypeDoc
Defines a custom aggregation function or expression in JavaScript.
4.4
https://docs.mongodb.com/manual/reference/operator/aggregation/function/#mongodb-expression-exp.-function