diff --git a/Add-a-Mongoose-Model.md b/Add-a-Mongoose-Model.md index 577dd3f..b81cfc5 100644 --- a/Add-a-Mongoose-Model.md +++ b/Add-a-Mongoose-Model.md @@ -29,7 +29,9 @@ SomeModelSchema = new mongoose.Schema({ # 2. Install plugins. These add common schema properties, indexes and # functions to the schema. SomeModelSchema.plugin(plugins.NamedPlugin) -SomeModelSchema.plugin(plugins.SearchablePlugin, {searchable: ['name', 'description']}) +SomeModelSchema.plugin(plugins.SearchablePlugin, { + searchable: ['name', 'description'] +}) # 3. Add common static properties.