How to import from JSON file into Meteor
// import data only when Products collection is empty if (Products.find().count() === 0) { console.log(“Importing private/products.json to db”) var data […]
// import data only when Products collection is empty if (Products.find().count() === 0) { console.log(“Importing private/products.json to db”) var data […]
You must be logged in to post a comment.