I have a global collection which has a field of
relationshipto my blog posts, however when I use
payload.findGlobalthe image returned is just an ID (rather than the full image object like when using
.find) - how do I turn this ID into the image object?
Hi @plainnn - to get the full image data you just need to add a
depthparameter in your
payload.findGlobalrequest
You probably need depth=2 or higher, and you can read more about the depth concept here
https://payloadcms.com/docs/getting-started/concepts#depthStar
Discord
online
Get dedicated engineering support directly from the Payload team.