Skip to content

Commit ab28496

Browse files
vkarpov15hasezoey
andauthored
Update lib/schema.js
Co-authored-by: hasezoey <hasezoey@gmail.com>
1 parent d1e3c81 commit ab28496

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/schema.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,9 @@ Schema.prototype.clearIndexes = function clearIndexes() {
919919
* const ToySchema = new Schema({ name: String, color: String, price: Number });
920920
* ToySchema.searchIndex({ name: 'test', definition: { mappings: { dynamic: true } } });
921921
*
922+
* @param {Object} description index options, including `name` and `definition`
923+
* @param {String} description.name
924+
* @param {Object} description.definition
922925
* @return {Schema} the Schema instance
923926
* @api public
924927
*/

0 commit comments

Comments
 (0)