flask-rest-jsonapi
flask-rest-jsonapi copied to clipboard
Receive empty list of related resources after upgrade from 0.30.1 to 0.31.x
trafficstars
Such kind of requests always returns empty list:
Request:
/addresses/43/values
Response:
{ "data": [], "links": {"self": "http://127.0.0.1:5000/address_values"}, "meta": {"count": 0}, "jsonapi": {"version": "1.0"} }
If I try to get the same resources using the filter it returns expected result.
/address_values?filter=[{"name":"address__id", "op":"has", "val":43}]
On 0.30.1 everything works as expected.
@smdevice was this an issue with relationship? Even I am facing the same issue
@smdevice was this an issue with relationship? Even I am facing the same issue
Yes, it returns an empty list only for relationships.