Open smdevice opened 3 years ago
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"} }
/addresses/43/values
{ "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}]
/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
Yes, it returns an empty list only for relationships.
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.