I am trying to update a value on a resource, and clear a to-many relationship at the same time like so:
api.update('my-resource', { id: 1, my-field: 'new value', my-to-many-relationship: [] });
However, the my-to-many-relationship is not being recognized as a relationship in this case. Am I doing something wrong? I would like this operation to remain atomical.
Thanks in advance!
I am trying to update a value on a resource, and clear a to-many relationship at the same time like so:
api.update('my-resource', { id: 1, my-field: 'new value', my-to-many-relationship: [] });However, the
my-to-many-relationshipis not being recognized as a relationship in this case. Am I doing something wrong? I would like this operation to remain atomical.Thanks in advance!