Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
4.6.7
-
None
-
None
-
Yes
Description
Steps to reproduce
- Create a new content type with ezobjectrelationlist field
- regenerate graphQL schema
- Create around 30 contents (e.g. folders)
- Create a content with created content type and select 30 contents
- Publish
- Try to get content via graphQL
{ content { contentobj(contentId: 188) { ezobj { _contentInfo { id } } } } }
change 'ezobj' to your field's name and 188 to created content id.
Result
The response contained only 25 correct ids and the rest was filled with the first id retrieved
Expected
All content should get correctly at once, otherwise we should be able to use pagination
Note
In RelationFieldResolver class we have :
$contentItems = $this->contentLoader->find(new Query( [ 'filter' => new Query\Criterion\ContentId($destinationContentIds), ] ));
as we are search content without a given limit and the default limit is 25, which causes a problem