kee
kee

Reputation: 11629

How to run server-side code programmatically in MongoDB

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

Answers (2)

kee
kee

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

Ulrich VACHON
Ulrich VACHON

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

Related Questions