I am new to sailsjs and currently working on project that uses sailsjs. I want to change the default database to mongodb
. I did it in config/local.js
like following
connections: {
'defaults': 'mongo',
mongo: {
module: 'sails-mongo',
host: 'localhost',
user: '',
password: '',
database: 'dbName',
schema: true
}
}
After starting mongodb and tried to create some data using application(that I am working on), and then when I check that in mongodb
using mongodb command line tool
. It finds no data there and when I check that in application it loads all of the data from database. That means it is still using the default database where that data is stored.
I am using sailsjs version 0.11.0
.