如何通过调用端点来限制返回的行/对象的数量?
http://localhost:8111/api/food_order?q={"filters":
[{"name":"user_id","op":"==","val":1188},
{"name":"date","op":">","val":"2018-05-01"}]}
我只需要此查询的最后6行。感谢
答案 0 :(得分:1)
http://localhost:8111/api/food_order?q={"limit":6,"filters":
[{"name":"user_id","op":"==","val":1188},
{"name":"date","op":">","val":"2018-05-01"}]}
所以它在q param中只是"limit": 6