Method filterToConditions documentation

Converts the given object 'filter' to a valid format of condition.

Example

```javascript bbn.fn.filterToConditions({num: 3}); // { // logic: "AND", // conditions: [{ // field: "num", // operator: "=", // value: 3 // }] // } ```

Example

```javascript bbn.fn.filterToConditions({num: 3}, '>'); // { // logic: "AND", // conditions: [{ // field: "num", // operator: ">", // value: 3 // }] // } ```

Converts the given object 'filter' to a valid format of condition. - The resulting format will comply with bbn.fn.compareConditions and also with bbn databases functions and complex filters applied to bbn-vue list components. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.