Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/mongoose.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Mongoose', () => {
...createDto,
name: 'Nest',
age: 5,
kitten: [kitten._id as string],
kitten: [kitten._id.toString()],
};

const parent = await new Promise<string>((resolve) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/src/cats/schemas/cat.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Document, Types } from 'mongoose';
import { Prop, Schema, SchemaFactory } from '../../../../lib';

@Schema()
export class Cat extends Document {
export class Cat extends Document<Types.ObjectId> {
@Prop()
name: string;

Expand Down