Answers for "mongoose date type"

0

mongoose date type

const mongoose = require('mongoose');

const userSchema = new mongoose.Schema({
  name: String,
  // `lastActiveAt` is a date
  lastActiveAt: Date
});
const User = mongoose.model('User', userSchema);
Posted by: Guest on July-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language