I have a collection defined in lib/collections.js:
mainCollection = new Mongo.Colleciton("maincollection")
When I try to do mainCollection.insert({'user': 'test'})
in a Meteor method on the server side, I get the error that mainCollection.insert is not a function
.
I have autopublish and insecure removed if that adds any information.