I am trying to work with lwc tree-grid and move the results returned from my query display there related data.
However it looks like the return is now non-extensible and as such you can no longer simply do the following to get the data into the '_children' property
@wire(fetchTimesheets) timeSheetRate({ error, data }) { if (data) { let objs = []; for ( var i = 0; i < data.length; i++ ) { console.log(JSON.parse(JSON.stringify(data[i]))); let obj = data[i]; if(obj['Timesheet_Rates__r']) { obj._children = obj[ 'Timesheet_Rates__r' ]; delete obj.Timesheet_Rates__r; } console.log(JSON.parse(JSON.stringify(obj))); objs.push(obj); } this.gridData = objs; } else if (error) { console.log('An error has occurred:'); console.log(error); } }; Any ideas, The only thing i can think of at this point would be return a class so Apex rather then the objects