Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

timestamps in mongoose

const userSchema = mongoose.Schema(
  {
    email: String,
  },
  { timestamps: true }
);
Source by masteringjs.io #
 
PREVIOUS NEXT
Tagged: #timestamps #mongoose
ADD COMMENT
Topic
Name
9+9 =