flask-rest-jsonapi icon indicating copy to clipboard operation
flask-rest-jsonapi copied to clipboard

Receive empty list of related resources after upgrade from 0.30.1 to 0.31.x

Open smdevice opened this issue 5 years ago • 2 comments
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 avatar Oct 23 '20 07:10 smdevice

@smdevice was this an issue with relationship? Even I am facing the same issue

kurianbenoy-aot avatar Dec 28 '20 08:12 kurianbenoy-aot

@smdevice was this an issue with relationship? Even I am facing the same issue

Yes, it returns an empty list only for relationships.

smdevice avatar Jan 04 '21 11:01 smdevice