Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix(db-mongodb): fallback `version` when not selected (#12158)
When doing `payload.db.queryDrafts` with `select` without `version`, or
simply your select looks like:
`select: { version: { nonExistingField: true } }` - the `queryDrafts`
function will crash because it tries to access the `version` field.
This PR adds a fallback. S
Sasha committed
6dc61ae6429359f0cce824ee2de243e380dab728
Parent: fdff587
Committed by GitHub <noreply@github.com>
on 4/18/2025, 6:43:53 PM