Custom filter for finding if an asset contains a word or if an asset exists?

The current implementation supports both the asset_contains and asset_exists filters. These are both custom filters defined as ft.CUSTOM and allow for a custom condition. This way you can also create your own filters.

The requested filters look like this:

this.addFilter('asset_contains', ft.CUSTOM, {
    condition: "asset @> '${asset_contains:value}'::jsonb",
});

this.addFilter('asset_exists', ft.CUSTOM, {
    condition: "asset ? '${asset_exists:value}'",
});
2 Likes