You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to select a single Chapter entity and the number of it's children, the result is not built properly. As far as I can debug this, it's a problem of these lines:
API Platform version(s) affected: 3.0.8
Description
In my application, I use a parent/child relation with entities of the same type, like the following:
When I try to select a single
Chapter
entity and the number of it's children, the result is not built properly. As far as I can debug this, it's a problem of these lines:Due to the last condition, the
$resourceOperation
is not properly set to a collection operation, but to an item operaion. This results in an error inas the resulting collection is not a collection, but
null
(even if there are entities matching this criteria).How to reproduce
{ chapter(id: "/api/chapters/chapterId") { id, children { totalCount } } }
Additional Context
metadata_backward_compatibility_layer=true
) and belowThe text was updated successfully, but these errors were encountered: