I am trying to create a limited collection using Mongoose, however the following creates a collection that is not limited:
var schema = new mongoose.Schema( { Name: { type: String }, Text: { type: String } }, { capped: { max: 5, size: 1000000 } });
I am sure that I am following the documentation example correctly, but obviously I am doing something wrong.
source share