-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
when you use the query "mpBlogCategories" and we query the posts, the number of posts we are getting is only 10, you can check this class
Class: \Mageplaza\BlogGraphQl\Model\Resolver\Resolver\Post:: resolve
public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
{
$category = $value['model'];
$postCollection = $category->getSelectedPostsCollection();
$searchCriteria = $this->searchCriteriaBuilder->build('posts', $args);
$searchCriteria->setCurrentPage(1);
$searchCriteria->setPageSize(10);
$searchResult = $this->filterQuery->getResult($searchCriteria, 'post', $postCollection);
return [
'total_count' => $searchResult->getTotalCount(),
'items' => $searchResult->getItemsSearchResult()
]
}
I believe we should get all or we use PageSize
Metadata
Metadata
Assignees
Labels
No labels