Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection is empty in IE11 with compund indexes #10

Open
lifter035 opened this issue Mar 10, 2016 · 1 comment
Open

Collection is empty in IE11 with compund indexes #10

lifter035 opened this issue Mar 10, 2016 · 1 comment

Comments

@lifter035
Copy link

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()

@lifter035
Copy link
Author

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>."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant