[Solved] how can I read values from a mongodb?


Try this code :

Pages = new Meteor.Collection("pages");
Meteor.startup(function () {
        if(Pages.find().count() === 0){
            var pages = JSON.parse(MY_JSON_LIST);
            for (page in pages) {
                    Pages.insert(pages[page]);
            }
        }
});

solved how can I read values from a mongodb?