Skip to content

Databases & Data · Token

MongoDB

Query collections, read schemas and explain queries on one cluster.

Ask your bot to…

  1. “How many orders came in yesterday?”
  2. “Show me the shape of the users collection”
  3. “Explain why this query is slow”

How to connect

  1. 1

    Get a connection string.

    Give it a database user with only the roles a bot needs — the connection string is the whole of the permission, and this app cannot narrow it for you.

    Connection string format
  2. 2

    Open Connectors in Lobstack and choose MongoDB. Paste it in.

    Allow changesOptional
    Off, the server offers no insert, update, delete or drop tool at all.
  3. 3

    Give it to a bot.

    A bot reaches only the connectors you give it.

Tools

  • find
  • aggregate
  • list-collections
  • collection-schema

Examples. The server decides the real list when it starts.