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,