Skip to content

Commit

Permalink
Update types/mongooseoptions.d.ts
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey committed Jul 20, 2022
1 parent 80d1aaa commit 85f18f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/mongooseoptions.d.ts
Expand Up @@ -79,7 +79,10 @@ declare module 'mongoose' {
| stream.Writable
| ((collectionName: string, methodName: string, ...methodArgs: any[]) => void);

/** Defaults to `true`. If `true`, adds a `id` virtual to all schemas by default. */
/**
* If `true`, adds a `id` virtual to all schemas unless overwritten on a per-schema basis.
* @defaultValue true
*/
id?: boolean;

/**
Expand Down

0 comments on commit 85f18f8

Please sign in to comment.