Overview
The Insert To Children By Query List command provides functionality for:- Inserting multiple fields into child objects in a single command
- Applying each query-field pair sequentially to all children
- Reducing pipeline complexity when multiple parent fields need to be injected
Command Type
Command Type ID: 1021Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| queries | Array of InsertToChildrenByQueryParams | List of insert-to-children-by-query param objects, each applied in order to all children | Yes |
InsertToChildrenByQueryParams
| Field | Type | Description | Required |
|---|---|---|---|
| fieldName | string | The name of the field to insert the data into | Yes |
| query | string | JSONPath query to select the data from commandResult | Yes |
Usage Examples
Insert Multiple Parent Fields
Insert Metadata and Timestamp
Common Use Cases
- Bulk Enrichment: Inject multiple parent-level identifiers into child records in one step
- Data Denormalization: Flatten hierarchical data with multiple parent attributes
- Pipeline Simplification: Replace multiple sequential Insert To Children By Query commands with one
Related Commands
- Insert To Children By Query - Insert a single field into children
- Insert To Children - Insert parent attributes using key mapping rules
- Key Mapping - Remap fields after insertion