DBProvider.updateQuery()method
updateQuery(collection: Collection<string, II, TT>, query: Query<Item<II, TT>>, updates: Updates<TT>): Promise<void>
Apply partial updates to every item matching a query.
- Two-step by default: resolves the query to its matching items with
getQuery(), then updates each one concurrently withupdateItem(). Engine providers override this with a native query write where one exists (e.g. SQLUPDATE … WHERE). - Not guaranteed atomic: the resolve and the writes are separate steps, so wrap the call in
transact()when atomicity matters.