对strapi中已填充的数据进行分页



我有一个新闻类别和新闻类别内容类型。我已经能够调用API来填充新闻类别中的新闻条目查找所有API。但我需要对每个类别返回的新闻数量进行分页或限制。https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest/populating-fields.html#combining-与其他运营商的群体从这个文档中,我们提到我们可以将分页和填充相结合,但我的结果没有被分页

{
populate : {
news: {
fields: [ 'id' ],
populate: { thumbnail: [Object] },
sort: [ 'news_date:desc' ],
pagination: { start: '0', limit: '2' }
}
}
}

这是使用的查询

看起来它不起作用。。。

我们将无法添加此项,因为从技术角度来看根本不可能。

https://github.com/strapi/documentation/issues/752#issuecomment-1043491952

最新更新