Introduction
The $in operator helps you find documents where a field's value matches any value from a list you provide. It makes searching for multiple possible values easy.
You want to find all users whose favorite color is either red, blue, or green.
You need to get all orders with statuses like 'shipped', 'delivered', or 'processing'.
You want to find products that belong to any of several categories.
You want to filter records where a field matches any value from a small set of options.