Setup like so:
export default IndexedDbConfigurationService.extend({
currentVersion: 1,
version1: computed(function () {
return {
stores: {
'restaurant': '&id,*areas'
}
};
}),
mapTable: computed(function () {
return {
'restaurant': (item) => ({
id: item.id,
json: this._cleanObject(item),
areas: get(item, 'relationships.areas.data').map(_ => _.id)
})
}
})
});
Can see that the db is loaded as expected:

However, the store does not return anything:
const r = await this.store.query('restaurant', {areas: ["1"]});
// r === []
What am I missing.
Setup like so:
Can see that the db is loaded as expected:
However, the store does not return anything:
What am I missing.