Skip to content

Commit d7f4d6d

Browse files
Merge pull request #3208 from adelbke/fix-mongoose-subdocuments
docs (mongo): update in subdocuments
2 parents 23da51b + 7d98e2e commit d7f4d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/mongo.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ export class Person {
624624
export const PersonSchema = SchemaFactory.createForClass(Person);
625625

626626
export type PersonDocumentOverride = {
627-
name: Types.Subdocument<Types.ObjectId & Name>;
627+
name: Types.Subdocument<Types.ObjectId> & Name;
628628
};
629629

630630
export type PersonDocument = HydratedDocument<Person, PersonDocumentOverride>;

0 commit comments

Comments
 (0)