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…}
通過添加雙引號和刪除空格,它工作正常。謝謝。 –