【发布时间】:2021-08-11 15:40:32
【问题描述】:
MultiEntry 索引的文档说可以使用任何Indexable Type。
数组是可索引的类型。因此应该可以索引数组的数组等等,对吧?
但是,我找不到任何示例或弄清楚如何查询这些示例。
基本上,我想要的是这样的:
var db = new Dexie('dbname');
db.version(1).stores({
books: 'id, author, name, *properties'
});
db.books.put({
id: 1,
name: 'Human Action',
author: 'Ludwig von Mises',
properties: [['language', 'english'], ['subject', 'philosophy'], ['subject', 'economics']]
});
然后能够找到具有economics 主题的书。
【问题讨论】:
标签: dexie