How to set an ObjectId in Mongoose?

前端 未结 0 784
逝去的感伤
逝去的感伤 2021-01-28 11:21

I have a flights model file:

const flightsSchema = new Schema({
  departureDate: {
    type: String,
    required: true,
  },
  returnDate: {
    type: String,
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题