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.
1 parent d1e3c81 commit ab28496Copy full SHA for ab28496
lib/schema.js
@@ -919,6 +919,9 @@ Schema.prototype.clearIndexes = function clearIndexes() {
919
* const ToySchema = new Schema({ name: String, color: String, price: Number });
920
* ToySchema.searchIndex({ name: 'test', definition: { mappings: { dynamic: true } } });
921
*
922
+ * @param {Object} description index options, including `name` and `definition`
923
+ * @param {String} description.name
924
+ * @param {Object} description.definition
925
* @return {Schema} the Schema instance
926
* @api public
927
*/
0 commit comments