mongo-seeding
mongo-seeding copied to clipboard
🌱 The ultimate solution for populating your MongoDB database.
There is an old issue from 2019 #73 about being able to switch between databases. I'm currently trying to do something similar in a multi tenant approach where I want...
Like other ORM-based seeders, it would be awesome if the seeding runs would be stored in collection to prevent duplicates within the seeded collection. For example sequelize (mysql orm) is...
The [closeConnection](https://github.com/pkosiec/mongo-seeding/blob/a0a46982cb71a0f54db4e0b90e41c5f6f0ccc29f/core/src/database/database.ts#L103) function needs to be reworked to check if the db is connected, without using the deprecated method `isConnected` ``` (node:169094) DeprecationWarning: isConnected is deprecated and will be removed...
In near future, I would like to rewrite Mongo Seeding core. It may introduce some breaking changes, as I want to support additional features, without making the API too complex....
Let me explain the use for this case. Right now, I have a docker spinning up a mongodb database. Assuming that the database is totally empty I want to seed...
I just ran into this issue where all the added data would show up under a single document (with a single `ID`) in MongoDB. After about 30 minutes of tinkering...
I think it's time to improve the documentation, by reworking it and publishing as a dedicated website. - Rework documentation - Create and publish Docusaurus-based Mongo Seeding website - Use...
Currently, Mongo Seeding repo uses legacy package management from Lerna, which is a deprecated way to manage dependencies. The repository should be migrated to the NPM workspaces. Learn more here:...
Given a schema such as this: ``` const mongoose = require('mongoose'); const locationDetailSchema = new mongoose.Schema({ referrer_id: { type: mongoose.Schema.Types.ObjectId, required: true, }, locationType: { type: String, enum: ['USER', 'VENDOR',...
Hello, and thank you for your incredible work. In my current project, I'm using mongo-seeding to populate the database with seed data, employing a Docker image approach. I intend to...