miLibris / flask-rest-jsonapi

Flask extension to build REST APIs around JSONAPI 1.0 specification.
http://flask-rest-jsonapi.readthedocs.io
MIT License
598 stars 153 forks source link

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

Open smdevice opened 3 years ago

smdevice commented 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"} }

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.

kurianbenoy-aot commented 3 years ago

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

smdevice commented 3 years ago

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

Yes, it returns an empty list only for relationships.