Skip to content

Commit 718e777

Browse files
committed
docs(schema): improve description of .indexes()
1 parent d7232de commit 718e777

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/schema.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,8 @@ Object.defineProperty(Schema, 'indexTypes', {
14031403
});
14041404

14051405
/**
1406-
* Compiles indexes from fields and schema-level indexes
1406+
* Returns a list of indexes that this schema declares, via `schema.index()`
1407+
* or by `index: true` in a path's options.
14071408
*
14081409
* @api public
14091410
*/

0 commit comments

Comments
 (0)