Skip to Content

peekRecord()

Returns a single locally cached record by ID without making a network request.

Accepts both numeric and string IDs (string ID support added in v2.9.0).

Kind: global function
Returns: CollectionRecord | undefined - The matching record, or undefined if not in the local cache.

ParamTypeDescription
collectionNamestringThe registered collection name.
collectionRecordIdnumber | stringThe record ID to look up.

Example

// Numeric ID const address = ARM.peekRecord('addresses', 123)

Example

// String ID const address = ARM.peekRecord('addresses', 'JO-26181S4VPU65')
Last updated on