Steven Than

Results 4 issues of Steven Than

E.g. a `Company` that has many `Employee` ```ts company.employees = []; company.save({ with: 'employees' }); ``` This is the payload which doesn't include the `relationships` field: ```js { "data": {...

Is there a way to generate json payload from a model's instance? Right now I have this in my code which seems to work, but curious if an alternative exists...