Skip to main content

lightyear.modelsynchronizer

Home > @runlightyear/lightyear > ModelSynchronizer

ModelSynchronizer class

Signature:
declare abstract class ModelSynchronizer<T> 

Constructors

ConstructorModifiersDescription
(constructor)(props)Constructs a new instance of the ModelSynchronizer class

Properties

PropertyModifiersTypeDescription
collectionstring
connectorAuthConnector
fromObjectData?{ [sourceFieldName: string]: string | ((model: any) => any); }
fromObjectMeta?{ [sourceFieldName: string]: string | ((model: any) => any); }
modelstring
toObjectData?{ [objectFieldName: string]: string | ((source: any) => any); }
toObjectMeta?{ [objectFieldName: string]: string | ((source: any) => any); }

Methods

MethodModifiersDescription
create(obj)
delete(id)
get(id)
getExternalKeys()
getFromObjectData()
getFromObjectMeta()
getObjectKeys()
getToObjectData()
getToObjectMeta()
list(props)
mapFromObject(object)
mapToObject(source)
sync(syncId, direction)
update(obj)