Even when there is no collection link, why does it even it return the these keys?
TL;DR
The user is asking why a relationship for only one attribute is returning "$databaseId" and "collectionId" keys, even when there is no collection link. They are requesting help in creating an issue with reproducible steps.