From 33f29add2076b54800c67737b4049383af51b284 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Fri, 22 Apr 2016 15:26:23 -0700 Subject: [PATCH] Updated Add a Mongoose Model (markdown) --- Add-a-Mongoose-Model.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.