I have created a function in the mongodb using the following command : -
db.system.js.save({
_id: "sp_GetCustomerInfo",
value: function(){
return db.customer.find()
}
})
I am using Mongoose Library in the nodeJS side to perform the operations of mongodb. Now, I want to call this function from NodeJS side. How can I call this?
Please Help