Hi,
how do I get mongodb's collection method datasize() with mongoose?
var Post = db.model('Post', {
body : { type: String, required: true },
place : { type: String, required: true },
location: { type: String, required: true },
date : { type: Date, required: true, default: Date.now }
});
Post.datasize() doesnt seems to work.
All I want to do is to check was there any kinds of modification to a collection.
(e.g. data update, delete, save to collection)
Please help me!