Last Sync: 2022-08-11 08:00:04

This commit is contained in:
tactonbishop 2022-08-11 08:00:04 +01:00
parent 4caf69e2c9
commit a3950994ad

View file

@ -85,7 +85,7 @@ const courseSchema = new mongoose.Schema({
author: String,
tags: [String],
data: {type: Date, default: Date.now}, // if unspecified, entry will default to current date
isPublished: boolean
isPublished: Boolean
});
```
@ -117,6 +117,4 @@ const course = new Course({
tags: ["node", "backend"],
});
```
![](/img/mongohierarchy.svg)
// TODO: diagram schema - model - object
![](/img/mongoose-hierarchy.svg)