When using a richText field and using the link option to select a document from a collection, the document is populated with too much depth. The only collection I allow to be linked is my routes collection. Loading a page with 10 route links can easily load the data of 60 - 100 documents linked to the route. Is there any way to limit this depth?
I've found the following discussion https://github.com/payloadcms/payload/discussions/3952 which hints at using a hook on the richText field but i've been unable to limit the depth this way as the document doesn't seem to be fully populated at execution of the afterRead hook yet. Limiting the depth on the routes collection is not an option as there are too many pages and other features linked to it unless there is a sure way to determine the request comes from the richText field. The richText field also seems to be the only thing that produces this "bug".
Does anyone happen to have an implemtation for this in place?
Describe the Bug I encountered an issue related to data loading. On a single page, I have several richText fields, and this page contains numerous internal links (around 50) to other pages of my we...