We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e86c102 + d6e7e3c commit 8a2b2cfCopy full SHA for 8a2b2cf
types/schematypes.d.ts
@@ -322,8 +322,8 @@ declare module 'mongoose' {
322
*/
323
required(required: boolean, message?: string): this;
324
325
- /** The schema this SchemaType instance is part of */
326
- schema: Schema<any>;
+ /** If the SchemaType is a subdocument or document array, this is the schema of that subdocument */
+ schema?: Schema<any>;
327
328
/** Sets default select() behavior for this path. */
329
select(val: boolean): this;
0 commit comments