- changed status to resolved
Missing items on limiting embedded collection
Issue #1
resolved
When I try to limit the results on an embedded collection using a where filter for the main resource the limit is applied but the filter condition behaviour is wrong.
Initial request: [http://msbm2-api.maidolabs.com/api/styles?embeds[]=beers&where[in][id]=pale-ale,lager]
Response is as expected:
[
{
"id": "lager",
// other fields here...
"beers": [
// 10 results
]
},
{
"id": "pale-ale",
// other fields here...
"beers": [
// 10 results
]
}
]
Then add limit to embedded beers: [http://msbm2-api.maidolabs.com/api/styles?embeds[]=beers&where[in][id]=pale-ale,lager&items[beers][]=2]
The response is wrong:
[
{
"id": "lager",
// other fields here...
"beers": [
// 2 results, OK!
]
}
// MIssing second style here!!
]
Comments (1)
-
reporter - Log in to comment
Fix
#1→ <<cset 669b63dee820>>