// FutureTasks = Collections.FutureTasks = new Mongo.Collection('future_tasks', { capped : true, size : 5242880, max : 50 });
FutureTasks = Collections.FutureTasks = new Mongo.Collection('future_tasks');
FutureTasks._createCappedCollection(5242880, 5);
Uncaught Error: Can only call _createCappedCollection on server collections
EDIT:
Works when placed in server.js
FutureTasks._createCappedCollection(5242880, 5);
meteor:PRIMARY> db.future_tasks.isCapped()
true
But after adding more than 5 documents, say 6, then on UI Griddle table I see 3, then 2, then 1, …well now 0
and meteor mongo shell is still ?
db.future_tasks.count()
5
and CTRL-M on UI with the meteortoys:allthings installed, I see still 5 items, though only the _id but nothing else.
So it seems like it has removed docs but not the mongodB _id, hence I see count of 5 and yet the empty Griddle UI table discrepancy, so in a way it has resulted in items deleted, with only its _id remaining?