[COMPASS-4698] $merge "on" value says "string" but it could be string or array of strings Created: 10/Mar/21  Updated: 27/Oct/23  Resolved: 23/Mar/22

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Autocomplete, Documentation
Affects Version/s: None
Fix Version/s: No version

Type: Bug Priority: Trivial - P5
Reporter: Ethan Steininger (Inactive) Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-03-10 at 11.59.24 AM.png    
Documentation Changes: Not Needed

 Description   

Compass:

/**

  • into: The target collection.
  • on: Fields to identify.
  • let: Defined variables.
  • whenMatched: Action for matching docs.
  • whenNotMatched: Action for non-matching docs.
    */ { into: 'negativeAccounts', on: 'string', let: 'specification(s)', whenMatched: 'string', whenNotMatched: 'string' }

Docs:

into: <collection> or { db: <db>, coll: <collection> },
on: <identifier field> or [ <identifier field1>, ...], // Optional
let: <variables>, // Optional
whenMatched: <replace|keepExisting|merge|fail|pipeline>, // Optional
whenNotMatched: <insert|discard|fail> // Optional
} }


Generated at Wed Feb 07 22:37:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.