Closed baranchikovaleks closed 4 years ago
Hello there,
Is this repo still alive?
@maxi7587, @pablorsk are you guys aware of this issue? Feels like incompatibility with jsonapi spec to me (although admittedly, for an edge case)
LIbrary now support on v2.1.x version:
:tada:
Hi there! It seems like
cachememory
is not doing well when relationships are added/deleted. Here is my case.A resource has 2 mutually exclusive relationships, so when we set one we should remove another. According to JSONAPI spec we can do it via PATCH with
relation.data = null
. So I doresource.save()
which results in the following request to the serverand got response from server (according to the spec
The response document MUST include a representation of the updated relationship(s).
)And finally I've got the following error
It looks like it tries to update
cachememory
and fails, becausedata
is null.Is there a way to completely disable caching, including
cachememory
? (#174 still has no answer)