{"repo":"pkosiec/mongo-seeding","free":true,"listed":false,"github":"https://github.com/pkosiec/mongo-seeding","clone":"git clone https://github.com/pkosiec/mongo-seeding.git","description":"🌱 The ultimate solution for populating your MongoDB database.","language":"TypeScript","stars":562,"topics":["mongodb","mongo","db","database","seed","seeding","db-seed","database-seeding","database-seeder","seed-database"],"license":"MIT","category":"databases-storage","readme_excerpt":"Mongo Seeding The ultimate solution for populating your MongoDB database :rocket: Define MongoDB documents in JSON, JavaScript or even TypeScript files. Use JS library, install CLI or run Docker image to import them! Introduction Mongo Seeding is a flexible set of tools for importing data into MongoDB database. It's great for: - testing database queries, automatically or manually - preparing ready-to-go development environment for your application - setting initial state for your application How does it work? 1. Define documents for MongoDB import in JSON, JavaScript or TypeScript file(s). To learn, how to do that, read the import data definition guide. To see some examples, navigate to the examples directory. 1. Use one of the Mongo Seeding tools, depending on your needs: - TypeScript/JavaScript library with friendly API - Command line interface (CLI) - Docker image 1. ??? 1. Profit! Motivation There are many tools for MongoDB data import out there, including the official one - mongoimport . Why should you choose Mongo Seeding? Problem #1: JSON used for import data definition Every tool I found before creating Mongo Seeding support only JSON files. In my opinion, that is not the most convenient way of data definition. The biggest problems are data redundancy and lack of ability to write logic. Imagine that you want to import 10 very similar documents into authors collection. Every document is identical - except the name: With every tool I've ever found, you would need to cre","default_branch":null,"files":null,"tree":[],"storefront":"/r/pkosiec","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pkosiec/mongo-seeding/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}