Skip to content

Commit

Permalink
Merge pull request #6751 from sajadtorkamani/patch-1
Browse files Browse the repository at this point in the history
Prefix mongoose.Schema call with new operator
  • Loading branch information
vkarpov15 committed Jul 23, 2018
2 parents 971311e + e32f721 commit 58c51ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.jade
Expand Up @@ -56,7 +56,7 @@ block content
Let's get a reference to it and define our kittens.

```javascript
var kittySchema = mongoose.Schema({
var kittySchema = new mongoose.Schema({
name: String
});
```
Expand Down

0 comments on commit 58c51ba

Please sign in to comment.