Skip to content

Glossary: MongoDB

$set (aggregation)

An aggregation stage that keeps every field and adds or replaces the ones you give. Unlike `$project`, it doesn't drop other fields.

Where the book teaches it

Related terms

$projectExpression