1

Looking at the documentation, it is possible to pass an instance of Mongoose into the Keystone options:

http://keystonejs.com/docs/configuration/

"mongoose Object: Instance of Mongoose to be used instead of the default instance."

But how...? How do I get the instance from Mongoose?

TylerH
  • 20,799
  • 66
  • 75
  • 101
ChrisRich
  • 8,300
  • 11
  • 48
  • 67

1 Answers1

3

You need to require mongoose yourself, configure it, and then pass it to keystone under the mongoose key

var yourMongoose = require('mongoose')

// init mongoose

keystone.init({mongoose: yourMongoose})
w00t
  • 17,944
  • 8
  • 54
  • 62