Hey guys, i am calling /posts for example, and i have author and category collection which needs to be populated if i pass depth=1 in params, but it doesnt. Does anyone knows whats the problem?
That's likely because of access control on the collections preventing them from populating.
Test again after changing access.read to
() => true
as a test.
yes, that was the problem
thanks
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.