Skip to content

Commit

Permalink
Merge pull request #10831 from Okekeprince1/patch-1
Browse files Browse the repository at this point in the history
update models.md
  • Loading branch information
vkarpov15 authored Oct 2, 2021
2 parents f59e8f7 + f03f46d commit 80dfb8c
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 @@ -127,7 +127,7 @@ async function run() {
const personSchema = new mongoose.Schema({
name: String
});
const Person = mongoose.model('Person', personSchema, 'Person');
const Person = mongoose.model('Person', personSchema);

// Create a change stream. The 'change' event gets emitted when there's a
// change in the database
Expand Down

0 comments on commit 80dfb8c

Please sign in to comment.