How to use the ember-data-storefront/-private/queries/array function in ember-data-storefront

To help you get started, we’ve selected a few ember-data-storefront examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github embermap / ember-data-storefront / addon / -private / coordinators / record-arrays.js View on Github external
query(store, type, params) {
    let query = this.cache.getRecordArrayQuery(type, params);

    if (!query) {
      let strategy = new this.strategyClass();
      query = new ArrayQuery(store, type, params, strategy);
      this.cache.putRecordArrayQuery(query);
    }

    return query;
  }
}