MCPcopy
hub / github.com/deepstreamIO/deepstream.io / setWithPath

Function setWithPath

test-e2e/framework-v3/record.ts:290–298  ·  view source on GitHub ↗
(clientExpression: string, recordName: string, path: string, data: string)

Source from the content-addressed store, hash-verified

288 },
289
290 setWithPath (clientExpression: string, recordName: string, path: string, data: string) {
291 getRecordData(clientExpression, recordName).forEach((recordData) => {
292 if (recordData.setCallback) {
293 recordData.record.set(path, utils.parseData(data), recordData.setCallback)
294 } else {
295 recordData.record.set(path, utils.parseData(data))
296 }
297 })
298 },
299
300 erase (clientExpression: string, recordName: string, path: string) {
301 getRecordData(clientExpression, recordName).forEach((recordData) => {

Callers

nothing calls this directly

Calls 4

forEachMethod · 0.80
getRecordDataFunction · 0.70
setMethod · 0.45
parseDataMethod · 0.45

Tested by

no test coverage detected