Skip to contents

This is essentially an internal transaction helper for trying to apply a changeset to a collection, used in several higher-level collection utils. Given the changeset that can represent updates of both types "replace" or "add", this applies an update join keyed on entityId for the replace and appends the new items to get the updated collection.

Usage

update_items(current_coll, update_coll)

Arguments

current_items

List of lists representing a collection of items.

update_items

Collection of items to apply as updates to current_items.