Alessio Gravili
e96d3c87e2
feat(db-*): support sort in db.updateMany (#11768)
This adds support for `sort` in `payload.db.updateMany`.
## Example
```ts
const updatedDocs = await payload.db.updateMany({
collection: 'posts',
data: {
title: 'updated',
},
limit: 5,
sort: '-numberField', // <= new
where: {
id: {
exists: true,
},
},
})
```
2025-03-19 10:47:58 -06:00
..
2024-12-19 11:08:17 -05:00
2025-02-27 16:05:48 +00:00
2025-03-17 20:50:00 +00:00
2025-02-22 00:32:37 +00:00
2025-03-05 03:09:24 +02:00
2024-09-07 02:48:59 +00:00
2025-02-27 16:05:48 +00:00
2025-03-17 23:48:35 -04:00
2025-02-17 19:50:32 +00:00
2024-12-18 22:43:37 -05:00
2024-12-18 22:43:37 -05:00
2024-12-18 22:43:37 -05:00
2025-03-17 23:48:35 -04:00
2025-02-27 17:40:22 -05:00
2025-02-27 17:40:22 -05:00
2024-09-03 11:19:19 -04:00
2025-02-27 17:40:22 -05:00
2024-12-18 22:43:37 -05:00
2025-02-27 17:40:22 -05:00
2024-12-18 22:43:37 -05:00
2024-09-03 11:19:19 -04:00
2024-12-19 22:34:52 +00:00
2024-11-25 10:28:07 -05:00
2024-12-18 22:43:37 -05:00
2024-09-03 11:19:19 -04:00
2024-12-19 22:34:52 +00:00
2024-12-18 22:43:37 -05:00
2025-02-27 20:30:17 -07:00
2024-12-18 22:43:37 -05:00
2024-12-18 22:43:37 -05:00
2024-12-18 22:43:37 -05:00
2024-12-18 22:43:37 -05:00
2024-12-18 22:43:37 -05:00
2024-08-29 02:35:17 +00:00
2024-12-19 22:34:52 +00:00
2025-03-17 20:50:00 +00:00
2025-02-27 17:40:22 -05:00
2025-02-27 17:40:22 -05:00
2025-03-19 10:47:58 -06:00
2025-02-27 17:40:22 -05:00
2025-02-27 17:40:22 -05:00