Skip to content

Clearing a to-many relationship in a "normal" patch #517

@TristanKobalt

Description

@TristanKobalt

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!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions