Skip to content
The plugin provides a functionality to add attributes to MongoDB's compound index for Grails MongoDB plugin.
Groovy
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
grails-app
src/groovy/com/monochromeroad/grails/plugins/mongo/cia
wrapper
.gitattributes
.gitignore
MongodbCompoundIndexAttributesGrailsPlugin.groovy
README.md
application.properties
grailsw
grailsw.bat

README.md

MongoDB Compound Index Attributes Plugin for Grails

Usage

// Domain Class
class Book {

    static mapWith = "mongo"

    static mapping = {
        compoundIndex contributor: 1, name: 1, indexAttributes: [name: "contributorUniqueName", unique: true]
    }

}
Something went wrong with that request. Please try again.