Add a .isCapped() for your collection object and add test for it.
I found a bug while testing my code like that: db.collection("test1").find().size() will throw a error, hence that I must do db.collection("test1").find().skip(0).size(), So i updated your cursor.js, now a cursor within a default skip value, it means I can do db.collection("test1").find().size()
.isCapped()
for your collection object and add test for it.db.collection("test1").find().size()
will throw a error, hence that I must dodb.collection("test1").find().skip(0).size()
, So i updated your cursor.js, now a cursor within a default skip value, it means I can dodb.collection("test1").find().size()