Why is a parent collection relation ID not showing up in api call?

Do you know a solution to add this Y relation ID in response? Without exposing Y to find endpoint?