I have a global collection which has a field of
relationship
to my blog posts, however when I use
payload.findGlobal
the 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
depth
parameter in your
payload.findGlobal
request
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 help straight from the Payload team with an Enterprise License.