问题
Actually I want to list transactions with a limit, but the query return all the result on REST SERVER API , bellow my query
query list {
description: "List with limit and offset"
statement:
SELECT org.acme.biznet.things
LIMIT _$limitParam
SKIP _$skipParam
}
回答1:
Unfortunately, LIMIT/SKIP support is blocked by Fabric presently as described in Issue 1015 on GitHub.
https://github.com/hyperledger/composer/issues/1015
回答2:
As of Hyperledger Fabric v1.3, pagination of query results is supported. A more efficient approach than skip/limit is utilized. Please see the pagination documentation.
来源:https://stackoverflow.com/questions/49544653/hyperledger-composer-query-with-limit-and-skip-return-all-results