I've been using this package for along time. I love it forlist and get endpoints. However I am extremely disappointed with the create/update behavior to the point where I am considering abandoning it.
When I create or update a record, for example updating a Store object that has a relationship to a Manager, I need to POST/PATCH this:
Instead of this:
The response from the update/create is also incorrect. It returns an object containing 'manager_id': 3, 'manager': 3. I did not pass any include params (the manager field is deferred) so I would expect to only get the manager_id field. And if I do get the manager field, I certainly do not want it to be the FK. That's the manager_id field.
How can I make this consistent?
I've been using this package for along time. I love it forlist and get endpoints. However I am extremely disappointed with the create/update behavior to the point where I am considering abandoning it.
When I create or update a record, for example updating a
Storeobject that has a relationship to aManager, I need to POST/PATCH this:Instead of this:
The response from the update/create is also incorrect. It returns an object containing
'manager_id': 3, 'manager': 3. I did not pass any include params (themanagerfield is deferred) so I would expect to only get themanager_idfield. And if I do get themanagerfield, I certainly do not want it to be the FK. That's themanager_idfield.How can I make this consistent?