We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm new to indexedDB and trying to create complex keys as the example below, but it is giving me error
var aStore = db.createObjectStore('aStore', {keyPath: ['a_id', 'b_code']}); a.createIndex('c_idx', {'c' : ['c.d', 'c.f']} , {unique: false});
ERROR Uncaught SyntaxError: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.(anonymous function) @ app.js:29applyNeededUpgrades @ angular-indexed-db.js:52dbReq.onupgradeneeded @ angular-indexed-db.js:131 angular.js:10627 $indexedDB: myIndexedDB database deleted.
Examples using angular-indexedDB to create/use complex keys are much appreciated
Thanks!
The text was updated successfully, but these errors were encountered:
I don't think compound keys are allowed in the keyPath (_id field, if thinking in MongoDB), at least, as per the error.
keyPath
Sorry, something went wrong.
No branches or pull requests
I'm new to indexedDB and trying to create complex keys as the example below, but it is giving me error
var aStore = db.createObjectStore('aStore', {keyPath: ['a_id', 'b_code']});
a.createIndex('c_idx', {'c' : ['c.d', 'c.f']} , {unique: false});
ERROR
Uncaught SyntaxError: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.(anonymous function) @ app.js:29applyNeededUpgrades @ angular-indexed-db.js:52dbReq.onupgradeneeded @ angular-indexed-db.js:131
angular.js:10627 $indexedDB: myIndexedDB database deleted.
Examples using angular-indexedDB to create/use complex keys are much appreciated
Thanks!
The text was updated successfully, but these errors were encountered: