Export Small or Large Database into Single SQL file
Export Small or Large Database into Single SQL file

Sometime we need to do export or copy the large database to somewhere may be other machine or local computer, we have to forcefully download the Database from remote DB. A large database export can be a tricky to download, currupt data can be there, So there is some good command line script are available... » read more

Mongoose find to match id with values stored as comma separated string

Mongoose query (find) to match id with values stored as comma separated string in MongoDB Assuming that we have stored the values into db is like [ { "tags": "fun,game,reading,photography" }, { "tags": "politics,game,workout,photography" }, { "tags": "programming,photography,business" } ] Model: Customer Customer.find({$where : 'this.categoryid.indexOf("' + categoryId + '") != -1'}); Originally posted Here