Consider, I have an IndexedDB database with a composite key, e.g.: [prop1, prop2]
.
Is it possible to do a partial query where only one part of the key is known to return multiple records from the database?
This will be equivalent to the following SQL query:
SELECT * FROM table WHERE prop1 = 'foo'
OR:
SELECT * FROM table WHERE prop2 = 'bar'
I've tried to use getAll()
method, but it looks like it's expecting value for both parts of the key.
If it's not possible — what alternative could be considered instead?