Collection.or() - zuki/Dexie.js GitHub Wiki
collection.or(indexOrPrimaryKey)
indexOrPrimaryKey: String | Name of an index or primary key registered in Version.stores() |
db.friends.where("name").equalsIgnoreCase("david").or("shoeSize").above(40)
.sortBy("shoeSize")
The sort order of the resulting collection will be undefined since the collection works on multiple indexes. To canonicalize the sort order, use the Collection.sortBy() method.
This is implemented using parallell query execution and duplicate removals. For details, read this article