Collections
Collections
Documentation on how to use Meteor's database collections.
Meteor stores data in collections. To get started, declare a collection with new Mongo.Collection
.
Anywhere new Mongo.Collection(name, [options])
import { Mongo } from 'meteor/mongo'
(mongo/collection.js, line 27)
import { Mongo } from 'meteor/mongo'
(mongo/collection.js, line 27) Constructor for a Collection
Arguments
-
name
String -
The name of the collection. If null, creates an unmanaged (unsynchronized) local collection.