Indexable Type

The following javascript types are possible to index:

  • string
  • number
  • Date
  • ArrayBuffer
  • Typed arrays (Uint8Array, Float32Array, …, etc)
  • Arrays of (strings, numbers, Dates, ArrayBuffer, Typed array) or a mix of those.

Note that all other types are non-indexable, including:

  • boolean
  • undefined
  • Object
  • null


const db = new Dexie('testdb');
    foo: 'id,bar'
});{id: null}); // fails with DataError because null is not indexable.{id: 1, bar: null}); // succeeds but fails silently to be indexed by "bar" index.'bar').equals(undefined).toArray(); // Fails with DataError as undefined is not indexable.

Table of Contents