My data is stored in indexeddb
, with an index on a text property of the objects. I am trying to retrieve all objects where this property's value is undefined.
I have been experimenting with IDBKeyRange.only(key)
, but when I use null
, undefined
, or an empty string, it throws a
DataError: The parameter is not a valid key
. It works fine for all defined values though.
I am conducting these tests in Chrome.
Update:
After checking the resources tab in Chrome, I discovered that the values are not actually present in the index. This means that my current index setup cannot be used to find objects where the property is not set.