MongoDB

Read and write MongoDB collections from any myai canvas, function, or chat — document CRUD + aggregation pipeline + Atlas cluster management.

Data & AnalyticsComing soon

MongoDB is the document database most application stacks reach for when relational doesn't fit the shape — content management, IoT telemetry, event logs, anything where the schema is genuinely flexible. When the integration lands, it'll treat MongoDB collections as live sources for chats, canvases, and functions, with first-class support for the aggregation pipeline that does the heavy lifting in real Mongo workloads.

What you'll be able to do

  • Pull documents into a chat — "show me the last 50 events for customer X" returns a structured table from the right collection without leaving the conversation.
  • Run aggregation pipelines — Mongo's signature query model, exposed through the integration so the same $match/$group/$lookup your app already uses works from a function.
  • Document CRUD — insert, update, replace, delete — for the automations that need to write back to Mongo.
  • Schema introspection — for the times you need to see what fields actually exist across the documents in a collection (because schema drift is real in any Mongo deployment that's been running for a year).
  • Atlas cluster management — for orgs running on Atlas, basic cluster ops are reachable through the same credential.

How it'll work

Connection string (mongodb+srv://...) plus a Mongo user scoped to the databases the workflows need. The standard Mongo driver does the heavy lifting; auth flows through username + password against the connection string's target database.

Tell us you want MongoDB

Use cases we're hearing

  • Event-stream analytics — daily function reads the previous day's event collection, runs an aggregation pipeline, posts the rollup to a canvas.
  • Customer-record enrichment — when a CRM signal fires, a function updates the matching Mongo document with the inferred attributes.
  • Cross-source dashboards — Mongo collections alongside Postgres or BigQuery data in a single canvas, joined at the application layer.

Reference

  • Connection model: MongoDB connection string + database user (TLS required)
  • Scope: document CRUD + aggregation pipeline + collection/index introspection
  • Atlas-specific cluster management available via the same credential where applicable