Closed Wiz1991 closed 2 weeks ago
It's not expected to have data
there, since the access function is executed before the document is retrieved from the database (unlike for create/update/delete operations). You need to return a Where
query from it.
https://payloadcms.com/docs/access-control/overview#argument-availability
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
No response
Environment Info
Describe the Bug
Calling findByID() does not populate id and data on read access function. If i do a regular REST API call, the ID only is available.
Reproduction Steps
Adapters and Plugins
No response