Implement retrieving relation target type