Tablux

Tablux › Videos › MongoDB

Video

MongoDB in Tablux: a find, then an AI aggregation

MongoDB in Tablux: a query and an AI question

A 22-second clip of Tablux on a Mac connected to MongoDB: Insights first, then a mongosh-style find for pending orders, then Tablux AI answers “Revenue by category this year” with an aggregation pipeline that unwinds each order’s lines.

The query typed in the video

The 20 newest pending orders. Tablux reads mongosh syntax (relaxed JSON, ISODate, ObjectId) and parses it, never evaluating it as JavaScript.

db.orders.find({ status: "pending" })
  .sort({ orderedAt: -1 })
  .limit(20)

The question for Tablux AI

The question, in everyday words: “Revenue by category this year”

The reply: Unwinding each order’s lines and summing them per category since 1 January:

db.orders.aggregate([
  { $match: { orderedAt: { $gte: ISODate("2026-01-01") } } },
  { $unwind: "$items" },
  { $group: { _id: "$items.category",
      revenue: { $sum: { $multiply: ["$items.qty", "$items.unitPrice"] } } } },
  { $sort: { revenue: -1 } }
])

“Use in editor” puts the query in the editor; Run runs it. Nothing runs by itself.

What came back

Each category comes back with its revenue for the year, tents first. The orders keep their lines embedded, so the pipeline needs $unwind before $group; the AI worked that out from the fields Tablux sampled.

How this was recorded

Everything in the clip is the real app on a Mac, connected to a real MongoDB 7 server holding the Trailhead Outfitters demo shop (two years of orders, products, customers and refunds). The typed query and the AI’s query both ran against that data; the result grids are what came back. The one thing staged is the AI’s reply: the recording can’t call Tablux AI live, so it shows a fixed answer of the kind Tablux AI gives, written for this schema.

Try it

Tablux is free on the App Store for iPhone, iPad and Mac, with two connections of your own and 5 AI questions a month. Tablux Pro ($9.99 a month, or $79.99 a year with a 7-day free trial) adds unlimited connections, SSH tunnels and 200 AI questions a month. The assistant sees your schema (table and field names, types, keys), never your rows, and its query only runs when you tap Run.

Try Tablux

Connect Tablux to your own MongoDB and ask it something.

Coming soon to the App StoreSee pricing