Documentation / @warp-drive/utilities / json-api / serializeResources
Call Signature
ts
function serializeResources(cache, identifiers): object;
Defined in: utilities/src/-private/json-api/serialize.ts:33
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: utilities/src/-private/json-api/serialize.ts:34
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[];