How to access many to many relation of unpublished object?

Hi
I am trying to get many to many relation objects from object_relation_ table . but for unppublished object i am not able to fetch. Can you please let help me here?

How to get relations of objects?

I’m not sure what exactly you are trying to achieve but this might help https://pimcore.com/docs/6.x/Development_Documentation/Objects/Object_Classes/Data_Types/Relation_Types.html#page_Unpublished-relations