MCPcopy
hub / github.com/GrapesJS/grapesjs / getRecord

Method getRecord

packages/core/src/data_sources/model/DataSource.ts:173–175  ·  view source on GitHub ↗

* Retrieves a record from the data source by its ID. * * @param {string | number} id - The ID of the record to retrieve. * @returns {DataRecord | undefined} The data record, or `undefined` if no record is found with the given ID. * @name getRecord

(id: string | number)

Source from the content-addressed store, hash-verified

171 * @name getRecord
172 */
173 getRecord(id: string | number): DataRecord | undefined {
174 return this.records.get(id);
175 }
176
177 /**
178 * Retrieves all records from the data source.

Callers 15

getRecordsMethod · 0.95
removeRecordMethod · 0.95
datasources.tsFile · 0.80
serialization.tsFile · 0.80
transformers.tsFile · 0.80
index.tsFile · 0.80
storage.tsFile · 0.80
mutable.tsFile · 0.80
changeDataSourceValueFunction · 0.80
props.tsFile · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected