Quick answer: Aurabase replaces MongoDB Atlas plus the surrounding backend services you would otherwise wire up yourself (Auth, S3 Storage, Realtime, Edge Functions, Notifications, AI Gateway) under 100% European jurisdiction (Aurabase SAS, France — no US CLOUD Act). You choose per project between dedicated PostgreSQL 18 (--engine postgres) and a MongoDB-compatible NoSQL document engine (--engine mongodb) with default per-owner security isolation.
2026 Matrix
Aurabase vs. MongoDB Atlas side by side
| Criterion | Aurabase | MongoDB Atlas |
|---|---|---|
| Corporate jurisdiction | France (EU) — Aurabase SAS | United States (MongoDB, Inc.) |
| US CLOUD Act immunity | Yes (Scaleway Paris & Hetzner DE, FI) | No (US parent + AWS/GCP/Azure) |
| Database engines | Dedicated PostgreSQL 18 (--engine postgres) or MongoDB-compatible NoSQL (--engine mongodb) | Document NoSQL only |
| Security by default | Postgres RLS or per-owner NoSQL isolation (403 on anon by default) | Network peering / DB users (app-layer authorization) |
| Query diagnostics | explain() (IXSCAN vs COLLSCAN) + ClickHouse slow-query logs | Atlas Performance Advisor |
| Auth, Storage, Realtime, Edge | All 7 BaaS products integrated | Separate services required (Atlas App Services deprecated) |
| AI & Coding Agents | pgvector HNSW + AST NL2SQL + 86 MCP tools | Atlas Vector Search |
Real NoSQL Code
Using Aurabase's MongoDB-compatible NoSQL engine
Create a NoSQL project with aura projects create my-events --engine mongodb (or select MongoDB in the Studio). Projects created with the default PostgreSQL engine expose PostgREST SQL + jsonb instead of /v1/nosql.
import { createClient } from '@aurabase/aurabase-js'
const aura = createClient(
process.env.NEXT_PUBLIC_AURABASE_URL!,
process.env.NEXT_PUBLIC_AURABASE_ANON_KEY!,
)
// 1. Insert & query nested fields with MongoDB operators
await aura.nosql.collection('events').insertOne({
type: 'user_signup',
metadata: { country: 'FR', plan: 'pro' },
timestamp: new Date(),
})
const { data: events } = await aura.nosql
.collection('events')
.find({ 'metadata.country': 'FR', type: { $in: ['user_signup', 'payment_success'] } })
.sort({ timestamp: -1 })
.limit(50)
// 2. Aggregation pipeline + TTL index + query explain
const { data: stats } = await aura.nosql.collection('orders').aggregate([
{ $match: { status: 'completed' } },
{ $group: { _id: '$customer_id', totalSpent: { $sum: '$amount' } } },
{ $sort: { totalSpent: -1 } },
{ $limit: 10 },
])
await aura.nosql.collection('sessions').createIndex({
keys: { userId: 1, createdAt: -1 },
options: { unique: false, expireAfterSeconds: 86400 },
})
const { data: plan } = await aura.nosql.collection('events').explain({ type: 'user_signup' })Unsupported operators are rejected with an explicit error (never silently ignored), and every collection enforces per-owner isolation by default — eliminating the classic "forgotten auth check exposing all documents" vulnerability.
Postgres vs NoSQL
When to pick PostgreSQL 18 vs. MongoDB engine on Aurabase
- Choose
--engine postgres(PostgreSQL 18) for SaaS cores, billing, multi-tenant RBAC, complex SQL joins, ACID transactions,pgvectorRAG, and AST-verified NL2SQL (and usejsonbcolumns for occasional flexible attributes). - Choose
--engine mongodb(Aurabase NoSQL) for heterogeneous product catalogs, IoT/analytics event streams, and TTL-expiring session documents.
Editorial Honesty
When MongoDB Atlas remains the right tool
Choose MongoDB Atlas if your workload relies on multi-continent sharded clusters across AWS/GCP/Azure, existing Mongoose applications speaking the native MongoDB wire protocol directly, or Atlas Search Lucene pipelines. Choose Aurabase when you want a complete European sovereign BaaS (Auth + DB + Storage + Realtime + Edge Functions + MCP) without US CLOUD Act exposure.
Read the NoSQL Document Store documentation and PostgreSQL 18 overview.
Frequently Asked Questions