Open TrevorVonSeggern opened 6 years ago
For the query: partner/favorite/id eq 1 Is there an implicit filter for: partner ne null and partner/favorite ne null?
What about collections? Do collections get filtered with all, any, or does it filter the items within the collection?
According to Example 93 in the specification, filters that are applied to child collections only provide a filter on that collection, not the entire result set. Example: Categories:
[
{id: 1, labels: [ 'red', 'blue' ]},
{id: 2, labels: [ 'red', 'green' ]}
]
=> to endpoint /api/Category
The query /api/Category?$expand=labels($filter="red")
,
or the query /api/Category?$expand=labels & $filter="red"
would return the result:
[
{id: 1, labels: [ 'red' ]},
{id: 2, labels: [ 'red' ]}
]
Unit test: [TestCase("children($filter=id eq 10)", 1, 2, 3, 4, 5, 6, 10)]
partner/id eq 1