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.
2 parents 0d16089 + 3a397c6 commit 9675a31Copy full SHA for 9675a31
content/techniques/mongo.md
@@ -34,9 +34,9 @@ Let's define the `CatSchema`:
34
```typescript
35
@@filename(schemas/cat.schema)
36
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
37
-import { Document } from 'mongoose';
+import { HydratedDocument } from 'mongoose';
38
39
-export type CatDocument = Cat & Document;
+export type CatDocument = HydratedDocument<Cat>;
40
41
@Schema()
42
export class Cat {
0 commit comments