documentId of relation in Lifecycle hook

There is no way in strapi v5 to get the relation documentId in Lifecycle hook?
i had somethink like:
const company = await strapi.documents("api::company.company").findOne({id: event.params.data.company.connect[0].id});
in strapi v4, now connect have array of ids, but I need documentId in this case. How To get docuemtnId of relation field in lifecycle hooks?

This topic has been created from a Discord post (1300476772256714802) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord