json-logic-js-graphql

JSON →
library 1.2.4 ·javascript
verified Jun 7, 2026

json-logic-js-graphql extends json-logic-js with GraphQL-compatible Lodash methods, enabling the use of logical operators like `_eq`, `_gt`, `_gte`, `_lt`, `_lte`, `_and`, `_or`, and date functions via moment.js. Current stable version is 1.2.4, released in 2021 with low release cadence. It solves the problem that GraphQL does not support keys like `==` or `===` by providing underscore-prefixed alternatives. Differs from plain json-logic-js by adding Lodash utility functions exposed as operators, and includes moment.js date comparisons. Suitable for applications that need to store or pass JSON Logic rules in GraphQL mutations.