Suppose I have a collection in my mongoDB: db.co
and only have one document:
{ \"_id\" : ObjectId(\"50d083e32cdcf7ce065b616c\"),
\"age\" : 22
Mongoose pluralizes your model name during any CURD operation, Use this & check :
var Co = mongoose.model('Co', coSchema, 'co'); //Even the case matters
or
var coSchema = new Schema({
age: Number,
friends: Array,
location: String,
name: String,
skill: Array
}, {collection:'co'});
var Co = mongoose.model('Co',coSchema);