Skip to content

Instantly share code, notes, and snippets.

@michielmulders
Last active September 9, 2019 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michielmulders/7005fee8853aefe91cbdee220a61d1e1 to your computer and use it in GitHub Desktop.
Save michielmulders/7005fee8853aefe91cbdee220a61d1e1 to your computer and use it in GitHub Desktop.
Custom Filter Account Entity
this.addFilter('asset_contains', ft.CUSTOM, {
condition: "asset @> '${asset_contains:value}'::jsonb",
});
this.addFilter('asset_exists', ft.CUSTOM, {
condition: "asset ? '${asset_exists:value}'",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment