import jexl from 'jexl' ; import Expression from 'jexl/dist/Expression' ; import { ValueTransformer } from 'typeorm' ; export const JexlExpressionTransformer = { to ( value ) { return value [ '_exprStr' ] ; } , from ( value ) { return jexl . createExpression ( value ) ; } , } ;