> ## Documentation Index
> Fetch the complete documentation index at: https://vlyai-1c28d863.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MongoDB

> Document database. Use when you need to connect to existing MongoDB data or specific MongoDB features.

[MongoDB](https://www.mongodb.com) is a document database. Use as a secondary store when you have existing MongoDB data or need specific features (geospatial queries, complex aggregation pipelines).

<Note>
  For new apps, prefer Convex. MongoDB integration is for connecting to existing databases.
</Note>

## Setup

`MONGODB_URI` in vly secrets. Use the official MongoDB driver from a Convex action.

## Related

<CardGroup cols={3}>
  <Card title="Convex overview" icon="database-zap" href="/convex/overview">
    Default backend.
  </Card>

  <Card title="Supabase" icon="database" href="/integrations/supabase">
    Postgres alternative.
  </Card>

  <Card title="BigQuery" icon="database" href="/integrations/bigquery">
    For analytics workloads.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.