Commit c065be4
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- lib/src
- config
- services
2 files changed
+114
-438
lines changedThis file was deleted.
0 commit comments