How to call a MongoDB function

You can find an example of it in the placeholder function content when creating one via the UI:

  // To call other named functions:
  // var result = context.functions.execute("function_name", arg1, arg2);
1 Like