Skip to content

Multi index querying doesn't seem to be supported. #85

Description

@joegaudet

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:

Screen Shot 2020-03-22 at 12 35 17 PM

However, the store does not return anything:

const r = await this.store.query('restaurant', {areas: ["1"]});
// r === []

What am I missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions