Commit be6c443
docs: fix incorrect select syntax example in querying docs (#14590)
### What?
Fix incorrect select example in the querying docs. The docs showed
`select: [{ title: true }]` which is not valid. Updated to `select: {
title: true }` to match actual API usage and TypeScript types.
### Why?
The wrong example causes TypeScript errors and confusion for users.
Correcting it makes the docs accurate and consistent.
### How?
Updated the example in docs/queries/overview.mdx to use object syntax
for select. No code changes, documentation only.
Co-authored-by: Paul Popus <paul@payloadcms.com>1 parent 11adc9d commit be6c443
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments