Back to Developer Roadmap

$eq

src/data/roadmaps/mongodb/content/[email protected]

4.0618 B
Original Source

$eq

The $eqoperator in MongoDB matches documents where a field value equals a specified value. It performs exact equality comparison and is the default behavior when using field: value syntax. $eqsupports all BSON data types including nested documents and arrays, enabling precise matching in queries. It's fundamental for filtering documents by specific field values in find operations.

Visit the following resources to learn more: