MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / createProjection

Function createProjection

js/botasaurus-server-js/src/task-helper.ts:11–16  ·  view source on GitHub ↗
(ets: string[])

Source from the content-addressed store, hash-verified

9import { normalizeData, normalizeItem } from 'botasaurus/output'
10
11export function createProjection(ets: string[]) {
12 return ets.reduce((acc: any, field) => {
13 acc[field] = 1;
14 return acc;
15 }, {});
16}
17
18
19function populateMissingKeys(newKeys: string[], allKeysMapping: any) {

Callers 4

queryTasksFunction · 0.90
queryTasksWithFiltersFunction · 0.90
executeDownloadTaskListFunction · 0.90
getTaskWithEntitiesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected