UNPKG

flora-exception

Version:

An exception system for FQL.

13 lines (12 loc) 373 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.$Extends = exports.$And = void 0; const faunadb_1 = require("faunadb"); const $And = (...args) => (obj) => { const predicates = args.map((arg) => { return arg(obj); }); return (0, faunadb_1.And)(...predicates); }; exports.$And = $And; exports.$Extends = exports.$And;