class FooController {
MongoClient mongo
def myAction() {
MongoDatabase db = mongo.getDatabase("mongo")
db.languages.insert([name: 'Groovy'])
}
}
Purpose
Provides access to the native MongoClient instance.
Examples
Description
See the API for the Mongo Java Driver for API usage info.