Modules
module-uuid
UUID module allows generating UUIDs via lookups in your transforms.
Installation#
Install with npm in your application:
Command
$ npm install --save \ @eventvisor/sdk \ @eventvisor/module-uuid
Setting up#
And then set it up when initializing the SDK:
import { createInstance } from "@eventvisor/sdk";import { createUUIDModule } from "@eventvisor/module-uuid";const eventvisor = createInstance({ modules: [ createUUIDModule(), ]});
Usage example#
In your transforms:
events/my_event.yml
# ...transforms: - type: set target: someIdProperty lookup: uuid