/Meteor-Mongo-Collections

Mongo.Collections instances by Collection name

Primary LanguageJavaScript

Meteor-Mongo-Collections

Get the existing Mongo.Collection instance by name, or create it if doesn't exist.

For a more sophisticated approach, see dburles:mongo-collection-instances.

Installation

Install the package from Atmosphere:

meteor add laboratory:mongo-collection

Usage Example

collection = new Mongo.Collection 'users'
nextCollection = new Mongo.Collection 'users'