Set correct relationship type in aggregate method.
Add getJSONRecords() to get first level aggregated JSONRecords.