Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

createdAt

const schema = new Schema({
  // Your schema...
}, {
  timestamps: { createdAt: true, updatedAt: false }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #createdAt
ADD COMMENT
Topic
Name
2+4 =