Skip to content

Documentation / @ember-data/json-api / request / serializeResources

Call Signature

ts
function serializeResources(cache, identifiers): object;

Defined in: -private/serialize.ts:33

Serializes the current state of a resource or array of resources for use with POST or PUT requests.

Parameters

cache

Cache

identifiers

StableRecordIdentifier

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: -private/serialize.ts:34

Serializes the current state of a resource or array of resources for use with POST or PUT requests.

Parameters

cache

Cache

identifiers

StableRecordIdentifier[]

Returns

object

An object with a data property containing the serialized resource patch

data

ts
data: ResourceObject[];

Released under the MIT License.