Plugins You can find out about all the publicly available Grails plugins.

MongoDB GORM Plugin Collection

42 votes

5% of Grails users

compile ":mongodb:3.0.3"

 Documentation  Source  Issues


A plugin that integrates the Mongo document datastore into Grails, providing a GORM API onto it


Add the following plugin definition to your BuildConfig:

compile ':mongodb:«version»'

Also, due to a problem in the Grails 2.3.7 and below dependency graph which is fixed in 2.3.8 and above you need to explicitly define the following dependencies in your BuildConfig if you are using 2.3.7 or below:

dependencies {
  compile 'org.grails:grails-datastore-gorm:3.1.4.RELEASE'
  compile 'org.grails:grails-datastore-core:3.1.4.RELEASE'
  test 'org.grails:grails-datastore-simple:3.1.4.RELEASE'


MongoDB is a NoSQL datastore that bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality). MongoDB (from "humongous") is a scalable, high-performance, open source, document-oriented database.

This project aims to provide an object-mapping layer on top of Mongo to ease common activities such as:

  • Marshalling from Mongo to Groovy/Java types and back again
  • Support for GORM dynamic finders, criteria and named queries
  • Session-managed transactions
  • Validating domain instances backed by the Mongo datastore


Further documentation on this plugin can be found using the following links:


Sources can be found at Github