Pagination Finally Arrived in Hyperledger Fabric v1.3

hyperledger
hyperledger-fabric

(Varun Raj) #1

For a very longtime pagnization during rich queries were not possible in hyperledger fabric and this was outstanding issue from v1.1 and they finally fixed it in the beta release of v1.3

Issue
https://jira.hyperledger.org/browse/FAB-2809

How to use?

NodeJS : https://github.com/hyperledger/fabric-chaincode-node/blob/release-1.3/test/integration/test.js#L381
GoLang : https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim#ChaincodeStub.GetQueryResultWithPagination

Explaination:
https://hyperledger-fabric.readthedocs.io/en/release-1.3/couchdb_tutorial.html#cdb-pagination