1
00:00:00,180 --> 00:00:04,530
Hey, what's up is John from the future with a quick Mongoose version six update.

2
00:00:04,920 --> 00:00:12,240
So in the following video, we will cover what happens if we pass in a property in the filter object

3
00:00:12,240 --> 00:00:18,900
that does not match anything what we currently have in the schema and in version five, the result was

4
00:00:18,900 --> 00:00:19,800
an empty array.

5
00:00:20,400 --> 00:00:25,620
Now, however, Mongoose just ignores the property if it's not in the schema.

6
00:00:26,100 --> 00:00:32,280
So if you use version six in the following video, you won't get back an empty array.

7
00:00:32,910 --> 00:00:39,730
Instead, non-existing properties will be ignored, and only the properties that currently exist in

8
00:00:39,730 --> 00:00:42,540
the scheme will be applied in the filter object.

9
00:00:42,990 --> 00:00:48,000
If you're interested in learning more, you can find more info in the migration docs.

