Kizspy | Question: 38
(Choose 2 answers)
Which of the following are valid ways to define a Mongoose schema with timestamps?
A. new Schema({ fieldName: String}, { timestamps: true })
B. new Schema({ fieldName: { type: String, timestamps: true } })
C. new Schema({ fieldName: String}, { timestamps: false })
D. new Schema({ fieldName: String }).set('timestamps', true)