Open
Description
Link to reproduction
https://github.com/fsyntax/payload/tree/locale-depth
Describe the Bug
The depth
parameter doesnt seem to have any impact when fetching collections with locale=all
.
To Reproduce
- Create two simple Pages
- Create a Hero Block inside one of the pages and add a button in an array field for both locales and link it to the second page
- Now visit
http://localhost:3000/api/page/1?locale=de&draft=true&depth=1
-heroButtons[0].link.value
contains i.e._status
- Then visit
http://localhost:3000/api/page/1?locale=all&draft=true&depth=1
-heroButtons.de/en[0].link.value
only contains the page ID anymore, regardless of the given depth value
Payload Version
2.9.0
Adapters and Plugins
db-postgres, bundler-webpack