We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4dc2ee commit 8793964Copy full SHA for 8793964
sample/06-mongoose/src/cats/schemas/cat.schema.ts
@@ -1,7 +1,7 @@
1
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
2
-import { Document } from 'mongoose';
+import { HydratedDocument } from 'mongoose';
3
4
-export type CatDocument = Cat & Document;
+export type CatDocument = HydratedDocument<Cat>;
5
6
@Schema()
7
export class Cat {
0 commit comments