What you get
The default database backend for the repositories Fractal generates.
-
A repository backend
MongoDB is the default storage backend for your entities, and the adapter the generator ships; it replaced Firestore as the default. The repository layer also has implementations for PostgreSQL and other SQL databases, Firestore and DuckDB, next to the in-memory and file backends used in tests and development.
-
Chosen by configuration
Which storage backs each entity is configured in Fractal Studio as a repository. Your app talks to a generic repository interface, so your domain code does not change when the database does.
-
Ready for local development
Connection settings are part of the generated environment configuration, so a local MongoDB is easy to run next to your app.
How it works
Every entity in a Fractal app is stored through a repository with a fixed interface. Which backend sits behind it is chosen when the application starts. An unknown backend name is an error rather than a silent fallback, so a typo never sends production data to a temporary store.
Account isolation, field encryption and the other safeguards are applied around the repository, so they work the same on every backend.