MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / transformRecords

Function transformRecords

js/botasaurus-server-js/src/views.ts:264–272  ·  view source on GitHub ↗
(results: any[], targetFields: (Field | CustomField | ExpandDictField | ExpandListField)[])

Source from the content-addressed store, hash-verified

262
263
264function transformRecords(results: any[], targetFields: (Field | CustomField | ExpandDictField | ExpandListField)[]) {
265 const processedResults: any[] = []
266
267 for (const record of results) {
268 const expandedRecords: any[] = transformRecord(targetFields, record)
269 processedResults.push(...expandedRecords)
270 }
271 return processedResults
272}
273
274function transformRecordsInPlace(results: any[], targetFields: (Field | CustomField | ExpandDictField | ExpandListField)[]) {
275 const processedResults: any[] = []

Callers 1

performApplyViewFunction · 0.85

Calls 2

transformRecordFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected