I\'m trying to create a capped collection using Mongoose, however the following creates a collection that is not capped:
If non-capped collection already exist then you need to convert it to capped collection using following command.
db.runCommand({"convertToCapped": "collection_name", size: 100000});
Then you can able to use it with mongoose.