We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c39a641 + 3a17928 commit cda9c97Copy full SHA for cda9c97
types/index.d.ts
@@ -709,6 +709,8 @@ declare module 'mongoose' {
709
model?: string | Model<any>;
710
/** optional query options like sort, limit, etc */
711
options?: any;
712
+ /** optional boolean, set to `false` to allow populating paths that aren't in the schema */
713
+ strictPopulate?: boolean;
714
/** deep populate */
715
populate?: string | PopulateOptions | (string | PopulateOptions)[];
716
/**
0 commit comments