Re: anyone able to iterate over records using getStateByRange?
Matthew White
Hello;
Check the API docs here https://hyperledger.github.io/fabric-chaincode-node/release-1.4/api/tutorial-using-iterators.html
Will need to double check, but as a workaround for an unbounded range try this as the end key
const MAX_UNICODE_RUNE_VALUE = '\u{10ffff}';
Though such an unbounded range could potentially give you a lot data; worth looking at the pagination variants especially if there's any doubt about the size of data that might come back
Regards, Matthew.
Matthew B White IBM Blockchain Solutions Architect
Email me at WHITEMAT@...
Find me on StackOverflow, and generally at calanais.me.uk
Note: restricted availability for meetings 14:30 to 17:00 UK Tuesday
IBM United Kingdom Limited, Hursley Park, Winchester, Hampshire, SO21 2JN
"The wrong answers are the ones you go looking for when the right answers stare you in the face" ----- Original message ----- IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
|
|