This extension provides documentation on how to filter based on relationships.
Given a requested resource (resource
from now on) that contains several relationships (rel1
, rel2
, … from now on), you can apply filters on the resource
based on conditions on rel1
, rel2
, … The default behavior is to filter the elements on resource
, unless otherwise is specified.
The following request returns only the resource entities that contain a relationship that meets the filter:
GET /resource?filter[rel1.conditionField][value]=value1