Skip to content

Commit

Permalink
Merge pull request #10505 from arkist/mongoose-document
Browse files Browse the repository at this point in the history
sample(mongoose): change the way to define the mongoose document interface
  • Loading branch information
kamilmysliwiec committed Nov 3, 2022
2 parents 8ca0044 + 8793964 commit 276e824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/06-mongoose/src/cats/schemas/cat.schema.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import { HydratedDocument } from 'mongoose';

export type CatDocument = Cat & Document;
export type CatDocument = HydratedDocument<Cat>;

@Schema()
export class Cat {
Expand Down

0 comments on commit 276e824

Please sign in to comment.