Skip to content

Commit d34f38f

Browse files
vkarpov15hasezoey
andauthored
Update types/index.d.ts
Co-authored-by: hasezoey <[email protected]>
1 parent 0b236a7 commit d34f38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ declare module 'mongoose' {
216216
getters?: boolean;
217217
/** remove empty objects (defaults to true) */
218218
minimize?: boolean;
219-
/** If true, the resulting object will only have fields that are defined in the document's schema. By default, `toJSON()` returns all fields in the underlying document from MongoDB, including ones that are not listed in the schema. */
219+
/** If true, the resulting object will only have fields that are defined in the document's schema. By default, `toJSON()` & `toObject()` returns all fields in the underlying document from MongoDB, including ones that are not listed in the schema. */
220220
schemaFieldsOnly?: boolean;
221221
/** if set, mongoose will call this function to allow you to transform the returned object */
222222
transform?: boolean | ((

0 commit comments

Comments
 (0)