how do I access to collection's data size through mongoose?

42 views
Skip to first unread message

Jae hyun yoo

unread,
Jun 28, 2015, 2:57:50 AM6/28/15
to mongoo...@googlegroups.com
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!

Reply all
Reply to author
Forward
0 new messages