Passer au contenu principal

mogli@0.3.3

Modules

FakeAdaptor

Functions

cleanupState(state)State

Removes unserializable keys from the state.

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.

Typedefs

State : Object
Operation : function

FakeAdaptor

cleanupState(state) ⇒ State

Removes unserializable keys from the state.

Kind: global function

ParamType
stateState

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")

State : Object

Kind: global typedef
Properties

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

Operation : function

Kind: global typedef

ParamType
stateState