1
我真的可以在同一个查询中使用过滤器和分页吗? 我可以使用过滤器,并返回我的预期:algolia过滤器和分页错误
const query = { filters: `type: ${type}`};
,但是当我在查询添加页面返回错误:
const query = { filters: `type: ${type}`, page: 2 };
错误消息写着:
AlgoliaSearchError {name: "AlgoliaSearchError", message: "filters: Unexpected token string(Object]) expected end of filter at col 14", debugData: Array(1), statusCode: 400, __zone_symbol__currentTask: ZoneTask…}
通过添加双引号和删除空格,它工作正常。谢谢。 –