0

I am trying to add attribute date in sails model sub document.But giving error.

{type:'array',model:'Recommendations'}

Recommendations.js

var Recommendations = {
attributes: {
    role : {type:'string'},
    user : {type:'string'},
    userName : {type:'string'},
    user_image : {type:'string'},
    user_status : {type:'string'},
    title : {type:'string'},
    description : {type:'string'},
    createdAt : {type:'date'},
 }
};
module.exports = Recommendations;

Anyone can help me...

Kundan Sharma
  • 189
  • 1
  • 8

0 Answers0