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,816
  • 57
  • 73
  • 92
ChrisRich
  • 7,501
  • 10
  • 42
  • 62

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,280
  • 7
  • 50
  • 57