urlForQueryRecord (query, modelName) String
Builds a URL for a store.queryRecord(type, query)
call.
Example:
app/adapters/application.js
import DS from 'ember-data'; export default DS.RESTAdapter.extend({ urlForQueryRecord({ slug }, modelName) { let baseUrl = this.buildURL(); return `${baseUrl}/${encodeURIComponent(slug)}`; } });
Parameters:
-
query
Object
-
modelName
String
Returns:
-
String
- url
Please login to continue.