urlForFindMany (ids, modelName, snapshots) String
Builds a URL for coalesceing multiple store.findRecord(type, id)
records into 1 request when the adapter's
coalesceFindRequests` 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
Please login to continue.