Open ashmanto opened 1 year ago
To make this specific beaviour a built in for typescript only, it could be added to the datahub typescript lib, similar to how SQuery here is done https://github.com/mimiro-io/datahub-tslib/blob/master/datahub.ts#L33.
In general, it could also be a good option to make it easy to import local typescript libs. So that you can have your local "common" file with typescript helper functions, which then can be imported into all local transform scripts.
usually when filtering out entities in transforms we would want to mark it as deleted if it exists in the sink dataset.
currently doing: (typescript)
will just igjore the entitiy that comes in, and not mark it as deleted if type changes.
we would need to do this everywhere: (typescript)
simplifying this with a function would be appreciated.