Skip to content

Commit

Permalink
Merge branch 'copy-push-files-action-9651748296-upload-functions' int…
Browse files Browse the repository at this point in the history
…o development
  • Loading branch information
mongodb-atlas-app-services[bot] committed Jun 24, 2024
2 parents 28947a6 + 9cc9bac commit 199fe05
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions snippets/functions/function-context/context_callFunction.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exports = async function(number1, number2){

// To call other named functions:
var result = context.functions.execute("sum", number1, number2);

return result;
};

// This examples calls a function named "sum" that looks like this:
/*
exports = async function(number1, number2) {
return number1 + number2
};
*/

0 comments on commit 199fe05

Please sign in to comment.