Documentation / @ember-data/json-api / request / serializeResources
Call Signature
ts
function serializeResources(cache, identifiers): object;
Defined in: warp-drive-packages/utilities/declarations/-private/json-api/serialize.d.ts:26
Serializes the current state of a resource or array of resources for use with POST or PUT requests.
Parameters
cache
identifiers
Returns
object
An object with a data
property containing the serialized resource patch
data
ts
data: ResourceObject;
Call Signature
ts
function serializeResources(cache, identifiers): object;
Defined in: warp-drive-packages/utilities/declarations/-private/json-api/serialize.d.ts:29
Serializes the current state of a resource or array of resources for use with POST or PUT requests.
Parameters
cache
identifiers
Returns
object
An object with a data
property containing the serialized resource patch
data
ts
data: ResourceObject[];