# Querying Arrays: One Value, $all and $size

A filter on an array field matches when any item fits, $in matches when any item is one of a list, $all asks for every value in a list, and $size counts the items; an exact array match is rarely what you want.

![Cheat sheet: Querying Arrays: One Value, $all and $size](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/b8e426f7cedb4433bbd2b518794b75e7.webp)

- Category: MongoDB
- Level: Apprentice
- Tags: $all, $in, $size, Array Field, mongodb
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/mongodb-querying-arrays-cheat-sheet
