Skip to content

event

Deprecated

connector.event() is deprecated. Use connector.sync() instead.

If you have already built an integration that uses this API, you can pass a single function to connector.sync() instead and use the isInitialSync variable to determine which logic to run.

Before:

connector.event(`createAllNodes`, customSyncAllDataFn);
connector.event(`updateNodes`, customSyncChangedDataFn);

After:

connector.sync(({ isInitialSync, models }) => {
if (isInitialSync) {
return customSyncAllDataFn(models);
} else {
return customSyncChangedDataFn(models);
}
});

If you previously set connector.event('updateNodes', false) to ensure every sync is a full data sync (with no caching), you need to configure your connector with the following setting:

integration.addConnector({
supports: {
deltaSync: false,
},
});

Got it!

Your feedback helps us improve our docs.