Introduction
Sometimes you want to find documents in a database where a list includes a specific item. Array-contains queries let you search for documents that have a certain value inside an array field.
When you want to find users who have a specific skill listed in their profile.
When you need to get all orders that include a particular product ID in their items array.
When you want to filter posts that have a certain tag in their tags array.
When you want to check if a chat message includes a specific emoji in its reactions array.
When you want to find events that include a certain participant in their attendees list.