我有新闻类和新闻类内容类型。我已经能够调用API来填充新闻类别中的新闻条目,查找所有API。但我需要对每个类别返回的新闻数量进行分页或限制。https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.html#combining-population-with-other-operators从这个文档中提到,我们可以将分页和填充结合起来,但是我的结果没有分页
{
populate : {
news: {
fields: [ 'id' ],
populate: { thumbnail: [Object] },
sort: [ 'news_date:desc' ],
pagination: { start: '0', limit: '2' }
}
}
}这是使用
发布于 2022-10-30 15:02:04
看上去不管用..。
--我们将无法从技术角度添加这一点--这根本是不可能的。
https://github.com/strapi/documentation/issues/752#issuecomment-1043491952
https://stackoverflow.com/questions/74173293
复制相似问题