Documentation / @ember-data/legacy-compat / adapterFor
Function: adapterFor()
Call Signature
function adapterFor(this, modelName): MinimumAdapterInterface;Defined in: warp-drive-packages/legacy/declarations/compat.d.ts:57
Returns an instance of the adapter for a given type. For example, adapterFor('person') will return an instance of the adapter located at app/adapters/person.js
If no person adapter is found, this method will look for an application adapter (the default adapter for your entire application).
Parameters
this
modelName
string
Returns
Call Signature
function adapterFor(
this,
modelName,
_allowMissing):
| undefined
| MinimumAdapterInterface;Defined in: warp-drive-packages/legacy/declarations/compat.d.ts:58
Returns an instance of the adapter for a given type. For example, adapterFor('person') will return an instance of the adapter located at app/adapters/person.js
If no person adapter is found, this method will look for an application adapter (the default adapter for your entire application).
Parameters
this
modelName
string
_allowMissing
true
Returns
| undefined | MinimumAdapterInterface