We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2c6c20 commit e6bab37Copy full SHA for e6bab37
src/beers/beers.schema.ts
@@ -3,7 +3,9 @@ import { Document } from 'mongoose';
3
4
export type BeersDocument = Beers & Document;
5
6
-@Schema()
+@Schema({
7
+ timestamps: true,
8
+})
9
export class Beers {
10
@Prop({ type: String, required: true })
11
name: string;
0 commit comments