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
..
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-19 10:47:58 -06:00
2025-03-17 23:48:35 -04:00
2025-03-17 23:48:35 -04:00
2025-03-17 23:48:35 -04:00
2025-03-19 10:47:58 -06:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-11 17:19:36 -04:00
2025-03-11 17:19:36 -04:00
2025-03-17 23:48:35 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-14 09:14:28 -04:00
2025-03-19 10:47:58 -06:00
2025-03-12 17:27:26 -04:00
2025-03-17 20:12:41 +02:00
2025-03-18 10:55:29 -06:00
2025-03-18 16:32:10 -04:00
2025-03-18 12:31:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-18 15:59:05 -06:00
2025-03-17 10:27:21 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-12 17:27:26 -04:00
2025-03-18 15:52:51 -03:00
2025-03-18 16:02:23 -06:00