Skip to content
module@warp-drive/legacy/compat @legacy

Function adapterFor()

Call Signature

ts
function adapterFor(this, modelName): MinimumAdapterInterface;

Defined in: warp-drive-packages/legacy/src/compat.ts:99

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

Store$1

modelName

string

Returns

MinimumAdapterInterface

Call Signature

ts
function adapterFor(
   this, 
   modelName, 
   _allowMissing
): 
  | MinimumAdapterInterface
  | undefined;

Defined in: warp-drive-packages/legacy/src/compat.ts:100

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

Store$1

modelName

string

_allowMissing

true

Returns

| MinimumAdapterInterface | undefined

Released under the MIT License.