built/conditions.js
/**
     * Transforms an entity query compared through predicate - to Condition
     * Example: throwIfNotActual(query.text, predicate.equals(text))
     */
Transforms an entity query compared through predicate - to Condition
Example: throwIfNotActual(query.text, predicate.equals(text))
Transforms an entity query compared through predicate - to Condition Example : throwIfNotActual ( query . text predicate . equals ( text ))
function throwIfNotActual(query, predicate) {
        return async (entity) => {
            const actual = await query(entity);
            if (!predicate(actual)) {
                throw new Error(`actual ${query}: ${actual}`);
            }
        };
    }
function throwIfNotActual ( query , predicate ) { return async ( entity ) => { const actual = await query ( entity ) ; if ( ! predicate ( actual ) ) { throw new Error ( ` ${ query } ${ actual } ` ) ; } } ; }
Transforms an entity query compared through predicate - to Condition
 Example: throwIfNotActual(query.text, predicate.equals(text))
Transforms an entity query compared through predicate - to Condition Example : throwIfNotActual ( query . text predicate . equals ( text ))