Documentation / @ember-data/legacy-compat / builders / findAll
Call Signature
function findAll<T>(type, options?): FindAllRequestInput<TypeFromInstance<T>, T[]>;
Defined in: builders/find-all.ts:37
This function builds a request config to perform a findAll
request for the given type. When passed to store.request
, this config will result in the same behavior as a store.findAll
request. Additionally, it takes the same options as store.findAll
.
All @ember-data/legacy-compat
builders exist to enable you to migrate your codebase to using the correct syntax for store.request
while temporarily preserving legacy behaviors. This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers. To that end, these builders are deprecated and will be removed in a future version of Ember Data.
Type Parameters
T
T
extends TypedRecordInstance
Parameters
type
the name of the resource
options?
FindAllBuilderOptions
<T
>
optional, may include adapterOptions
hash which will be passed to adapter.findAll
Returns
FindAllRequestInput
<TypeFromInstance
<T
>, T
[]>
request config
Deprecated
Call Signature
function findAll(type, options?): FindAllRequestInput;
Defined in: builders/find-all.ts:41
This function builds a request config to perform a findAll
request for the given type. When passed to store.request
, this config will result in the same behavior as a store.findAll
request. Additionally, it takes the same options as store.findAll
.
All @ember-data/legacy-compat
builders exist to enable you to migrate your codebase to using the correct syntax for store.request
while temporarily preserving legacy behaviors. This is useful for quickly upgrading an entire app to a unified syntax while a longer incremental migration is made to shift off of adapters and serializers. To that end, these builders are deprecated and will be removed in a future version of Ember Data.
Parameters
type
string
the name of the resource
options?
FindAllBuilderOptions
<unknown
>
optional, may include adapterOptions
hash which will be passed to adapter.findAll
Returns
FindAllRequestInput
request config