Custom data in rich text link resolver

I'm working with the linkResolver in React w/ Next.js. I get back doc.id and doc.uid. Is there anyway to access custom attributes inside of the link resolver. I have a parent field that affects the url but don't see how to get access to it without fetching a bunch of data inside the link resolver which seems pretty inefficient.