updated getEntityConnections to not require a query