Skip to main content

ts-transforms / operations/lib/transforms/array / default

Class: default

Defined in: operations/lib/transforms/array.ts:5

Extends

Constructors

new default()

new default(config): default

Defined in: operations/lib/transforms/array.ts:9

Parameters

ParameterType
configPostProcessConfig

Returns

default

Overrides

default.constructor

Properties

PropertyModifierTypeDefault valueOverridesInherited fromDefined in
configreadonlyOperationConfigundefined-default.configoperations/lib/base.ts:9
destinationprotectedstring | string[]undefined-default.destinationoperations/lib/base.ts:10
hasTargetprotectedbooleanundefined-default.hasTargetoperations/lib/base.ts:11
sourceprotectedstring | string[]undefined-default.sourceoperations/lib/base.ts:7
targetprotectedstring | string[]undefined-default.targetoperations/lib/base.ts:8
cardinalitystaticInputOutputCardinality'many-to-one'default.cardinality-operations/lib/transforms/array.ts:7

Methods

execute()

protected execute(doc, fn): null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Defined in: operations/lib/transforms/base.ts:5

Parameters

ParameterType
docDataEntity
fn(value) => any

Returns

null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Inherited from

default.execute


removeField()

removeField(doc, field): void

Defined in: operations/lib/base.ts:50

Parameters

ParameterType
docDataEntity
fieldstring

Returns

void

Inherited from

default.removeField


removeSource()

removeSource(doc): void

Defined in: operations/lib/base.ts:46

Parameters

ParameterType
docDataEntity

Returns

void

Inherited from

default.removeSource


run()

run(doc): DataEntity

Defined in: operations/lib/transforms/array.ts:31

Parameters

ParameterType
docDataEntity

Returns

DataEntity

Overrides

default.run


set()

set(doc, data): void

Defined in: operations/lib/base.ts:38

Parameters

ParameterType
docDataEntity
dataany

Returns

void

Inherited from

default.set


setField()

setField(doc, field, data): void

Defined in: operations/lib/base.ts:42

Parameters

ParameterType
docDataEntity
fieldstring
dataany

Returns

void

Inherited from

default.setField


validateConfig()

protected validateConfig(config): void

Defined in: operations/lib/transforms/array.ts:14

Parameters

ParameterType
configPostProcessConfig

Returns

void

Overrides

default.validateConfig