mongo-to-mysql

JSON →
library 1.2.4 ·javascript maintenance
verified Jun 5, 2026

Utility to convert simple MongoDB query documents into equivalent MySQL SQL statements. Version 1.2.4 is the latest stable release; development appears stalled (no updates since 2019). Supports insert, update, and select with basic operators ($in, $nin, $eq, $ne, $gte, $gt, $lte, $lt) and update modifiers ($set, $inc). Lacks support for $or, $and, $not, nested documents, arrays, or projection. Outputs raw SQL strings without parameterization, posing SQL injection risk. Only works with CommonJS; no TypeScript typings.