Home > @modelo.io/api > Model > compare

Model.compare() function

Compare two models. if succeed, there will be 4 arrays in the result, including new elements in model1, new elements in model2, modified elements in model1, modified elements in model2.

Signature:

function compare(modelId1: string, modelId2: string): Promise<ModelCompareResult>;

Parameters

ParameterDescription
modelId1The id of model1
modelId2The id of model2

Returns:

Promise<ModelCompareResult>