I am new to sailsjs and am currently working on a project that uses sailsjs. I want to change the default database to mongodb . I did this in config/local.js as shown below
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 the application (which I am working on), and then when I check that in mongodb using the mongodb command line tool . It does not find the data there, and when I check that in the application it loads all the data from the database. This means that it still uses the default database in which this data is stored.
I am using sailsjs version 0.11.0 .
2619
source share