Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Arangodb 具有用于简单查询的 LIMIT 和 SKIP 功能,如何使用 /api/cursor 实现
FOR product in products LIMIT 2 return product
理想情况下像
FOR product in products LIMIT 20 SKIP 10 return product
或者它只支持使用/_api/simple/all调用
/_api/simple/all
想我想通了,LIMIT 子句有一个偏移量,计数,可用于跳过和实现分页。
LIMIT @offset, @count FOR product in products LIMIT 2, 10 return product