首页 > 解决方案 > 如何使用日期参数查询 Strapi 中的对象?

问题描述

我在做什么的例子:

http://localhost:1337/reservas/?hora_inicio=2019-10-05T12:00:00.000Z

即使复制值,返回也是空的

标签: javascriptjsonbackendstrapi

解决方案


过滤器_inicio不存在。

请参阅此过滤器文档:https ://strapi.io/documentation/3.0.0-beta.x/guides/parameters.html#available-operators

应该是http://localhost:1337/reservas?hora_in=2019-10-05T12:00:00.000Z


推荐阅读