Hi @drewpearce thanks for the info. I'm trying this, but I'm not getting the child record. Have converted it to put the object in as a parameter object.
var stockNewParams = {
resource: [],
related: 'tblstocklinein_by_fk_stockID',
fields: '*'
};
stockNewParams.resource.push(n);
console.log(stockNewParams);
SharedFactoryStock.StockNew().create(stockNewParams, stockNewSuccess, stockNewFailure);
And When I get a response back from the server it's just got the parent record ID and not the related tables ID.
I've also tried fields: as blank and fields as * and as id.