Skip to main content

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

Class: default

Extends

Constructors

new default()

new default(config): default

Parameters

ParameterType
configPostProcessConfig

Returns

default

Overrides

default.constructor

Source

operations/lib/transforms/array.ts:9

Properties

config

readonly config: OperationConfig

Inherited from

default.config

Source

operations/lib/base.ts:9


destination

protected destination: string | string[]

Inherited from

default.destination

Source

operations/lib/base.ts:10


hasTarget

protected hasTarget: boolean

Inherited from

default.hasTarget

Source

operations/lib/base.ts:11


source

protected source: string | string[]

Inherited from

default.source

Source

operations/lib/base.ts:7


target

protected target: string | string[]

Inherited from

default.target

Source

operations/lib/base.ts:8


cardinality

static cardinality: InputOutputCardinality = 'many-to-one'

Overrides

default.cardinality

Source

operations/lib/transforms/array.ts:7

Methods

execute()

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

Parameters

ParameterType
docDataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>
fn(value) => any

Returns

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

Inherited from

default.execute

Source

operations/lib/transforms/base.ts:5


removeField()

removeField(doc, field): void

Parameters

ParameterType
docDataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>
fieldstring

Returns

void

Inherited from

default.removeField

Source

operations/lib/base.ts:50


removeSource()

removeSource(doc): void

Parameters

ParameterType
docDataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Returns

void

Inherited from

default.removeSource

Source

operations/lib/base.ts:46


run()

run(doc): DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Parameters

ParameterType
docDataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Returns

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

Overrides

default.run

Source

operations/lib/transforms/array.ts:31


set()

set(doc, data): void

Parameters

ParameterType
docDataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>
dataany

Returns

void

Inherited from

default.set

Source

operations/lib/base.ts:38


setField()

setField(doc, field, data): void

Parameters

ParameterType
docDataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>
fieldstring
dataany

Returns

void

Inherited from

default.setField

Source

operations/lib/base.ts:42


validateConfig()

protected validateConfig(config): void

Parameters

ParameterType
configPostProcessConfig

Returns

void

Overrides

default.validateConfig

Source

operations/lib/transforms/array.ts:14