Skip to content

Commit c065be4

Browse files
committed
feat(db): replace postgres seeding service with mongodb
- Rewrites `DatabaseSeedingService` to work with a MongoDB `Db` instance. - Removes table creation logic, as MongoDB collections are schemaless. - Implements idempotent seeding using `bulkWrite` with `upsert` operations, preventing duplicate data on subsequent runs. - Correctly handles the conversion of string IDs from fixtures to MongoDB `ObjectId` for the `_id` field. - Ensures complex nested objects in fixtures are properly JSON-encoded before insertion.
1 parent 34a0029 commit c065be4

File tree

2 files changed

+114
-438
lines changed

2 files changed

+114
-438
lines changed

lib/src/config/database_connection.dart

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)