Skip to main content

mogli@0.3.0

Modules

Adaptor
FakeAdaptor

Functions

lookup(relationshipName, externalID, path)object

Adds a lookup or 'dome insert' to a record.

relationship(relationshipName, externalID, dataSource)object

Adds a lookup or 'dome insert' to a record.

Adaptor

Adaptor~cleanupState

Kind: inner class of Adaptor

new cleanupState(state)

Removes unserializable keys from the state.

ParamType
stateState

Adaptor~State : Object

Kind: inner typedef of Adaptor
Properties

NameTypeDescription
dataobjectJSON Data.
referencesArray.<Reference>History of all previous operations.

Adaptor~Operation : function

Kind: inner typedef of Adaptor

ParamType
stateState

FakeAdaptor

lookup(relationshipName, externalID, path) ⇒ object

Adds a lookup or 'dome insert' to a record.

Kind: global function

ParamTypeDescription
relationshipNamestring__r relationship field on the record.
externalIDstringSalesforce ExternalID field.
pathstringJSONPath to data source.

Example (Example)

lookup("relationship_name__r", "externalID on related object", "$.path")

relationship(relationshipName, externalID, dataSource) ⇒ object

Adds a lookup or 'dome insert' to a record.

Kind: global function

ParamTypeDescription
relationshipNamestring__r relationship field on the record.
externalIDstringSalesforce ExternalID field.
dataSourcestringresolvable source.

Example (Data Sourced Value)

relationship("relationship_name__r", "externalID on related object", dataSource("path"))

Example (Fixed Value)

relationship("relationship_name__r", "externalID on related object", "hello world")