Have the following function created in MongoDB server.
db.system_js.sum = "function (x, y) { return x + y; }" This function sum is saved in current DB's system.js collection
Can execute this function in mongodb shell using step1 : db.loadServerScripts() step2 : sum(2,3) output : 5.
Advice how do I call/execute the sum function from python shell?