DS.BuildURLMixin#urlForFindMany()

urlForFindMany (ids, modelName, snapshots) String

Defined in addon/-private/adapters/build-url-mixin.js:216

Builds a URL for coalesceing multiple store.findRecord(type, id) records into 1 request when the adapter'scoalesceFindRequests` property is true.

Example:

app/adapters/application.js
import DS from 'ember-data';

export default DS.RESTAdapter.extend({
  urlForFindMany(ids, modelName) {
    let baseUrl = this.buildURL();
    return `${baseUrl}/coalesce`;
  }
});

Parameters:

ids Array
modelName String
snapshots Array

Returns:

String
url
doc_EmberJs
2016-11-30 16:49:31
Comments
Leave a Comment

Please login to continue.