Firestore with MongoDB compatibility is now generally available in Firebase: Web Architecture & Implementation Guide
Shipping reliable full-stack web applications requires keeping your client SDKs, backend security rules, and cloud infrastructure tightly aligned as your traffic scales. Following the announcement of Firestore with MongoDB compatibility is now generally available by Morgan Chen, Tyler Crowe, Minh Nguyen on the Official Firebase Blog (2025-08-26), here is our hands-on CodingCat.dev breakdown of what actually shipped, how it works under the hood, and how we wire it into production TypeScript, Next.js, Astro, SvelteKit, React, and Angular applications. In April, we released a public preview of Firestore with MongoDB compatibility available through Google Cloud. With this release, the Firebase team announced that Firestore with MongoDB compatibility is available in Firebase and we’re graduating to general availability! If you missed this earlier announcement, you might be wondering: What is MongoDB compatibility? And should I use it if I’m starting a new project? Let’s take a look.
The Mental Model: Why Firestore with MongoDB compatibility is now generally available Matters for Web Devs
As a Google Developer Expert (GDE) for Firebase and Senior Solutions Engineer at CodingCat.dev, I evaluate every Firebase update through one lens: does it reduce boilerplate while keeping our runtime security and cloud bills predictable? This Firebase update streamlines how web and cloud engineers configure, secure, and observe production workloads across modern TypeScript frameworks like Next.js, Astro, SvelteKit, React, and Angular.
AJ Pro-Tip from Alex: Whenever we adopt a new Firebase capability at CodingCat.dev, we validate it in the Firebase Local Emulator Suite first and pair client SDK calls with Firebase App Check and strict Security Rules before shipping to production.
How It Works: Technical Breakdown & Implementation
Firestore Enterprise edition
Firestore with MongoDB compatibility is available on a new Firestore Enterprise edition, which features MongoDB API compatibility along with more than 200 new powerful query capabilities, additional data types, new index types and improved performance.
At a glance, this means you can use existing MongoDB application code, drivers, and open-source libraries & tools with Firestore. Furthermore, Firestore no longer needs to stick to queries that are exclusively mapped to indexes, and can instead run more general workloads that, for example, allow you to match a text field using a regular expression without ever creating an index.
In other words, you can think of it as Firestore with more flexibility, advanced query capabilities, better performance and additional control for the developer. Firestore with MongoDB compatibility features many highly requested capabilities like aggregations, nested array & set manipulations, regular expression matching on text strings, and the ability to perform lookups (JOIN) on data.
If you’re an experienced Firestore developer, you might suspect that these changes come with a new pricing model, and you’re right. You can check out the new pricing on our pricing page.
Getting started
You can create a new Firestore with MongoDB compatibility database using the Firestore Enterprise edition directly in the Firebase Console.
To edit queries, the Firebase console now features an advanced query editor, allowing you to author and execute MongoDB Query Language (MQL) queries and view results that include new BSON data types.
Want more control around indexing? You can now create unique, sparse and non-sparse indexes all from the Firebase Console. Since Firestore Enterprise edition doesn’t require indexes on every query, this gives you fine-grained control over which of your queries use or don’t use indexes, which lets you optimize both your costs and your database’s performance.
Of course, you can create and manage databases and indexes via the Firebase CLI as well.
Enterprise vs Standard edition
If you love the Firebase SDKs with realtime sync and offline capabilities, you can keep using Firestore Standard edition! Standard edition Firestore databases are not going away, so your existing Firestore projects will continue to run indefinitely without any pricing or behavior changes.
In an upcoming release, all of the goodness of Firestore Enterprise edition will also be accessible via the Firebase SDKs with realtime sync and offline. Stay tuned!
Firestore is ready for your MongoDB workloads
If you want to upgrade from Firestore Standard edition to Enterprise edition, you’ll have to wait for the upcoming SDK compatibility release. If you’re a MongoDB developer, Firestore Enterprise is ready for your database workloads today. Check out the documentation for how to get started.
We’re delighted to see all the interest in Firestore over the past years and we’re elated to share that we’re finally able to deliver the query features the developers have been requesting. Now that Firestore with MongoDB compatibility is out, please give it a try!
Show Me the Code: TypeScript & Web SDK Setup
Here is the production baseline pattern we use at CodingCat.dev when wiring Firestore with MongoDB compatibility is now generally available into a modern TypeScript web application:
import { initializeApp, getApps } from "firebase/app";
import { getFirestore, collection, query, where, getDocs } from "firebase/firestore";
import { getAuth } from "firebase/auth";
const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
};
export const app = getApps().length ? getApps()[0] : initializeApp(firebaseConfig);
export const db = getFirestore(app);
export const auth = getAuth(app);Production Web Architecture & Security Checklist
Whether we are deploying on Firebase App Hosting, Cloudflare Workers, or Vercel, shipping TypeScript features to production requires defense-in-depth across three layers:
- Enforce Firebase App Check & Attestation: Protect your web endpoints, Cloud Functions, Data Connect GraphQL resolvers, and Firebase AI Logic calls against unauthorized replay or billing abuse using Firebase App Check with reCAPTCHA Enterprise.
- Validate Locally with the Firebase Emulator Suite: Run deterministic integration tests against local Firestore, Auth, Functions, and Data Connect PostgreSQL emulators before promoting schema or rule changes to production.
- Keep Server & Client Boundaries Type-Safe: Use the modular Firebase Web SDK and generated TypeScript bindings so SSR frameworks like Next.js, Astro, SvelteKit, and Angular serialize state cleanly without hydration flickers.
Conclusion
Accelerate your full-stack web and AI development by pairing Firestore with MongoDB compatibility is now generally available with strict Security Rules, Firebase App Check, and local emulator testing. Come tell us on X (@CodingCatDev) and LinkedIn (CodingCat.dev) how you are using Firebase in your stack, and subscribe to the CodingCat.dev YouTube Channel so you don't miss what we build next!
Watch Our Related Firebase Video Tutorial on YouTube
Want to see how we architect and debug Firebase web applications live? Watch our related CodingCat.dev session Firebase SQL with Data Connect below, and make sure to Subscribe to CodingCat.dev on YouTube for weekly full-stack web and AI deep dives:
Resources, Official Docs & Related CodingCat.dev Guides
- Primary Release Source: Firestore with MongoDB compatibility is now generally available on the Official Firebase Blog (published 2025-08-26 by Morgan Chen, Tyler Crowe, Minh Nguyen)
- Official Firebase Documentation: Firebase Developer Docs & Web SDK Reference
- Related on CodingCat.dev: App Hosting has faster deployments, route-based monitoring, and improved CI/CD setup
- Related on CodingCat.dev: Full-text search and other searches with Data Connect
- Related on CodingCat.dev: Firebase SQL with Data Connect
- Related on CodingCat.dev: Build a Custom No-Code App in 90 Minutes
Frequently Asked Questions (FAQ)
What are the key capabilities introduced in Firestore with MongoDB compatibility is now generally available?
Firestore with MongoDB compatibility is now generally available (announced 2025-08-26 by the Firebase team) enhances the platform for Firebase, Google Cloud, Web Dev, TypeScript workloads. In April, we released a public preview of Firestore with MongoDB compatibility available through Google Cloud. With this release, the Firebase team announced that Firestore with MongoDB compatibility is available in Firebase and we’re graduating to general availability! If you missed this earlier announcement, you might be wondering: What is MongoDB compatibility? And should I use it if I’m starting a new project? Let’s take a look. Developers can review the primary announcement on the Firebase Blog alongside our implementation patterns and production checklist above.
How do web developers use Firestore with MongoDB compatibility is now generally available with Next.js, SvelteKit, React, or Angular?
Web developers can integrate these features using the modular Firebase JavaScript/TypeScript SDK, Firebase Data Connect web bindings, and Firebase App Hosting. Always pair client-side SDK initialization with Firebase App Check and strict Security Rules, and test locally with the Firebase Local Emulator Suite before deploying.
Where can I watch video tutorials on Firebase Web and AI development?
You can watch our hands-on Firebase video walkthroughs on the CodingCat.dev YouTube Channel, including Firebase SQL with Data Connect, and follow us on X (@CodingCatDev) for weekly full-stack tutorials.