Mongo Query Buddy

Effortlessly translate Chinese natural language into MongoDB queries.

Input Query
Enter your query in Chinese and optionally provide field definitions.
Generated Query
The MongoDB query generated from your input.

Your generated query will appear here.

How to Use

  • Enter your database query in Chinese in the input area.
  • For more accurate results, provide field definitions if your data structure is complex. (e.g., { "name": "string", "age": "number" })
  • Click "Generate MongoDB Query".
  • Your translated query will appear on the right. You can then copy it.
  • Example Query: 查找所有类别为 "电子产品" 且价格低于500的商品