Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mycollection = new Meteor.Collection("mycollection");
- Meteor.startup(function () {
- Mycollection.insert({name: test1});
- Mycollection.insert({name: test2});
- var my_collection = Mycollection.find({}, {sort: {name: 1}});
- console.log(my_collection.count);
- my_collection.forEach(console.log('test'));
- });
Add Comment
Please, Sign In to add comment