This Meteor code removes a collection InputsCol.remove();
but when I go to the mongo terminal meteor:PRIMARY> db.inputsCol.find({})
, it still shows the documents it once had, thus the client side form still shows the data from said collection.
How can I remove all documents for the collection? Thanks
server.js
Meteor.methods({
addAction: function (doc) {
ActiveTaskCol.remove({});
InputsCol.remove();
doc.createdAt = new Date();
ActiveTaskCol.insert(doc);
}
});