Skip to content
Merged
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
4 changes: 2 additions & 2 deletions types/schematypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ declare module 'mongoose' {
*/
required(required: boolean, message?: string): this;

/** The schema this SchemaType instance is part of */
schema: Schema<any>;
/** If the SchemaType is a subdocument or document array, this is the schema of that subdocument */
schema?: Schema<any>;

/** Sets default select() behavior for this path. */
select(val: boolean): this;
Expand Down