idb-iegap
idb-iegap copied to clipboard
Collection is empty in IE11 with compund indexes
Hi guys,
Should below work in IE11 with current state of this polyfill? I don't seem to be getting any errors it's just that items is empty array in IE11.
Thanks
this.$db = new Dexie("Sync");
this.$db.version(1).stores({
repos: "&name",
metadata: "&path,repoName,size,[contentType+timelineDate],[contentType+versionCreated],extension,versionCreated,timelineDate"
});
this.$db.open();
this.$db.metadata.where('[contentType+timelineDate]').between(['photo', -Infinity], ['photo', '\uffff']).reverse().offset(0).limit(60).toArray().then(function (items) {
sys.Debug(items);
}).catch(function (error) {
sys.Error(error);
});
BTW this code is not executed at the same time. Query is executed after stores are populated first time or updated with changes. Records are returned if I use simpler query like: this.$db.metadata.where("repoName").equals("Drive").offset(0).limit(60).toArray()
Updated dexie to latest version and now I get type error when executing query: "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>."