javascript - IDBKeyRange.only() returns only first matching record -
i querying database table follows: function getallrecords(letter) { var trans = db.transaction(["observablestates"],"readonly").objectstore("observablestates").index('letterindex'); //get matching records var request = trans.opencursor(idbkeyrange.only([letter])); request.onsuccess = function(event) { var cursor = event.target.result; if(cursor) { count+=1; cursor.continue(); console.log(cursor); } } request.onerror = function(event) { console.log('error loading data table'); } //delete of returned records } i have 2 records having value of letter first record returned. cursor.continue() not seem work in case. any appreciated. thanks that should work, , can't reproduce problem. it's possible you're hitting browser bug (which browser testing in?) or there'...