From a3950994adaf6dfc912688b7a758d3aa66ee5772 Mon Sep 17 00:00:00 2001 From: tactonbishop Date: Thu, 11 Aug 2022 08:00:04 +0100 Subject: [PATCH] Last Sync: 2022-08-11 08:00:04 --- Databases/MongoDB/Introduction.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Databases/MongoDB/Introduction.md b/Databases/MongoDB/Introduction.md index f121274..e55affe 100644 --- a/Databases/MongoDB/Introduction.md +++ b/Databases/MongoDB/Introduction.md @@ -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 \ No newline at end of file +![](/img/mongoose-hierarchy.svg)