Re: [w3c/IndexedDB] Allow multiEntry + Array keyPath (#36)

If we ever tackle this, we also need to specify the behavior when a subkey is missing, e.g.:

```js
store.createIndex('by_name', ['name', 'alias'], {multiEntry: true});
store.add({name: 'Luke Cage', nickname: 'Power Man'}); // OK; two entries
store.add({name: 'Jessica Jones'}); // ???
```

If multiEntry were false, this throws since `nickname` does not resolve and the compound key can't have a hole. But here it would be logical (?) for there to be only a single entry.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/36#issuecomment-513962771

Received on Monday, 22 July 2019 21:31:51 UTC