[SERVER-544] Merge/overwrite collections function Created: 14/Jan/10 Updated: 06/Dec/22 Resolved: 07/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Phillip Oldham | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Duplicate | Votes: | 7 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
A very useful feature would be the ability to merge collections together, overwriting/updating the records of one collection with those contained in another. db.overwriteCollection(destCollection, [srcCollection, ...], options); where srcCollection is the collection, or an array of collections, to be merged into/onto destCollection. options: update: true/false - whether to update (true) or replace (false, default behaviour when not set) any conflicting/existing records based on document id or unique key. |
| Comments |
| Comment by Nicholas Zolnierz [ 07/Aug/18 ] |
|
Closing this as a duplicate of |