From e59f096771bf1a18ba6425813382af50d505d378 Mon Sep 17 00:00:00 2001 From: Shivaansh Agarwal Date: Tue, 28 Dec 2021 02:19:48 +0530 Subject: [PATCH] docs: use es6 object destructuring instead of regular dot operator for accessing value in object --- docs/populate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/populate.md b/docs/populate.md index af2af731bb3..cc73b326b2a 100644 --- a/docs/populate.md +++ b/docs/populate.md @@ -6,7 +6,7 @@ Population is the process of automatically replacing the specified paths in the ```javascript const mongoose = require('mongoose'); -const Schema = mongoose.Schema; +const { Schema } = mongoose; const personSchema = Schema({ _id: Schema.Types.ObjectId,