Demo

Query builder SQL and MongoDB import

Documented in QueryBuilder.

Query builder SQL and MongoDB import

Inline SQL from toSql, a custom operator evaluated by filterRows and serialized by the toSql and toMongo hooks, and queries loaded back with fromSql (literal, positional and named parameters) and fromMongo.

Matches: Candles, Tea lights
toSql (inline): MOD(qty, 6) = 0 AND stock = TRUE
toMongo: {"$and":[{"qty":{"$mod":[6,0]}},{"stock":{"$eq":true}}]}