Reputation: 11629
I need to define some js codes and run them in the server side. I know how to run them thru the mongo shell but I need to do this programmatically. How can I do this?
Upvotes: 0
Views: 312
Reputation: 11629
After some Internet search, I ran into a PHP solution from http://pointbeing.net/weblog/2010/08/getting-started-with-stored-procedures-in-mongodb.html
Upvotes: 0
Reputation: 11
You can use grails drivers like mongodb/gmongo. For example I use the MapReduceCommand to execute map/reduce command with Javascript syntax.
Enjoy
Upvotes: 1