Skip to content

Commit

Permalink
Merge pull request #13262 from c-marc/patch-1
Browse files Browse the repository at this point in the history
Modify schema syntax in example
  • Loading branch information
AbdelrahmanHafez committed Apr 10, 2023
2 parents d4e513d + 59e55bb commit 7971a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ When you call `mongoose.model()` on a schema, Mongoose _compiles_ a model
for you.

```javascript
const schema = new mongoose.Schema({ name: 'string', size: 'string' });
const schema = new mongoose.Schema({ name: String, size: String });
const Tank = mongoose.model('Tank', schema);
```

Expand Down

0 comments on commit 7971a4d

Please sign in to comment.