Skip to content

Commit

Permalink
Merge pull request #11135 from MontgomeryWatts/patch-1
Browse files Browse the repository at this point in the history
Update guide.md
  • Loading branch information
vkarpov15 authored Dec 24, 2021
2 parents b6eb341 + ab9e0f5 commit 0c7023d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ const mySchema = new Schema({ field: Number }, {
strictQuery: false // Turn off strict mode for query filters
});
const MyModel = mongoose.model('Test', mySchema);
// Mongoose will strip out `notInSchema: 1` because `strictQuery` is false
// Mongoose will not strip out `notInSchema: 1` because `strictQuery` is false
MyModel.find({ notInSchema: 1 });
```

Expand Down

0 comments on commit 0c7023d

Please sign in to comment.