Update Methods Overview
1. Overview
monSQLize provides three update methods. This page is the entry point for choosing the method and update payload shape:
Current update methods support both traditional update operators and aggregation pipeline syntax. For the full pipeline guide, see Aggregation Pipeline Update Guide.
2. Traditional update operator
2.1 Common operators
$set - Set field value
$unset - delete a field
$inc - increase/decrease value
$push - Add elements to an array
$pull - remove elements from an array
2.2 Combination use
3. Aggregation pipeline handoff
Use an aggregation pipeline when the update needs to reference existing field values, run conditional logic, or perform multi-stage transformations. The update payload is an array of pipeline stages:
This overview intentionally stops at selection and basic syntax. See Aggregation Pipeline Update Guide for supported stages, operator examples, performance notes, and troubleshooting.