{"action":"opened","issue":{"url":"https://api.github.com/repos/bramski/angular-indexedDB/issues/50","labels_url":"https://api.github.com/repos/bramski/angular-indexedDB/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/bramski/angular-indexedDB/issues/50/comments","events_url":"https://api.github.com/repos/bramski/angular-indexedDB/issues/50/events","html_url":"https://github.com/bramski/angular-indexedDB/issues/50","id":113303974,"number":50,"title":"Need help creating complex keys","user":{"login":"newbie-gk","id":12275844,"avatar_url":"https://avatars.githubusercontent.com/u/12275844?v=3","gravatar_id":"","url":"https://api.github.com/users/newbie-gk","html_url":"https://github.com/newbie-gk","followers_url":"https://api.github.com/users/newbie-gk/followers","following_url":"https://api.github.com/users/newbie-gk/following{/other_user}","gists_url":"https://api.github.com/users/newbie-gk/gists{/gist_id}","starred_url":"https://api.github.com/users/newbie-gk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newbie-gk/subscriptions","organizations_url":"https://api.github.com/users/newbie-gk/orgs","repos_url":"https://api.github.com/users/newbie-gk/repos","events_url":"https://api.github.com/users/newbie-gk/events{/privacy}","received_events_url":"https://api.github.com/users/newbie-gk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T08:09:06Z","updated_at":"2015-10-26T08:09:06Z","closed_at":null,"body":"I'm new to indexedDB and trying to create complex keys as the example below, but it is giving me error\r\n\r\nvar aStore = db.createObjectStore('aStore', {keyPath: ['a_id', 'b_code']});\r\n            a.createIndex('c_idx', {'c' : ['c.d',  'c.f']} , {unique: false});\r\n\r\nERROR\r\nUncaught 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\r\nangular.js:10627 $indexedDB: myIndexedDB database deleted.\r\n\r\nExamples using angular-indexedDB to create/use complex keys are much appreciated\r\n\r\nThanks!"}}