How to get all the connected nodes and relationship of a particular node?

Previously, Building entity class contains only building node properties (id, name, tenantCode and locationType). Now, i just altered by declaring Floor, Room and Device properties to retrieve this query path.

Am I missing anything