O'Reilly logo
  • Santosh Das thinks this is interesting:

Running our code

From

Cover of Sails.js Essentials

Note

Before Running the Code, you need to add the attributes in api/models/Message.js module.exports = {

attributes: {
email: {
type: 'string'
},
message: {
type: 'string'
}
}
};