diff --git a/types/types.d.ts b/types/types.d.ts index b1707c245f7..5d99ab38ee5 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -82,7 +82,7 @@ declare module 'mongoose' { class ObjectId extends mongodb.ObjectId { } - class Subdocument extends Document { + class Subdocument extends Document { $isSingleNested: true; /** Returns the top level document of this sub-document. */