August 2016
Intermediate to advanced
376 pages
6h 33m
English
You can add content in two ways, the first is using the endpoints created by the application and the second is by using the migration file.
In the following lines, we will show how to use the second option; it may be a brief and interesting procedure for creating a migration file:
module.exports = function(app) { // automigrate for models, everytime the app will running, db will be replaced with this data. app.dataSources.galleryDS.automigrate('gallery', function(err) { if (err) throw err; // Simple function to create content app.models.Gallery.create( [ { "name":"Bikes", ...Read now
Unlock full access