Monday 15 August 2011

Meteor.Collection.ObjectID() returning 'undefined' -


I have a meteor application running on Fedora 18 workstation. Meteor web application works properly without errors in the web console. When I try to run the following in the web console, it is undefined.

  Meteor.Collection.ObjectID ()   

Answers according to the document and other stack overflow This should work. I've used both Firefox and Chrome to test it. What am I missing?

Did this ObjectID () new

Please try:

  var _id = new Meteor.collection.ObjectID (); Console.log (_ id);    

No comments:

Post a Comment