Meteor-Community-Packages / mongo-collection-instances

🗂 Meteor package allowing Mongo Collection instance lookup by collection name

Home Page:http://packosphere.com/dburles/mongo-collection-instances

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaks for collections declared with Meteor.Collection

gwendall opened this issue · comments

Not a huge problem since this syntax is getting deprecated, but it currently breaks with the following error when a new Meteor.Collection object is instanciated. It matters for apps and packages (like https://github.com/CollectionFS/Meteor-cfs-tempstore/blob/master/tempStore.js#L31) that have not yet switched to the Mongo.Collection syntax.

Error: use "new" to construct a Mongo.Collection

Oh nice catch, I'll check it out

#4 fixed it for me