Is it Mongo.Collection or Meteor.Collection ?

Is it Mongo.Collection or Meteor.Collection ?

Asked on November 21, 2018 in Meteor.
Add Comment


  • 2 Answer(s)

    The solution is,

        Meteor.Collection was renamed Mongo.Collection in 0.9.1. The change is currently backward compatible, however you should switch to using Mongo.Collection for any new projects. It looks like the docs have mostly been updated except for the wording in the Data and security section.

    Answered on November 21, 2018.
    Add Comment

    Alternate solution:

    As per change in Meteor 0.9.1 you follow the link: https://github.com/meteor/meteor/blob/devel/History.md#backwards-compatible-renames

    Backwards compatible renames:

    Symbol renames:

    1. Meteor.Collection -> Mongo.Collection
    2. Meteor.Collection.Cursor -> Mongo.Cursor
    3. Meteor.Collection.ObjectID -> Mongo.ObjectID
    4. Deps -> Tracker
    Answered on November 21, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.