Image for post
Image for post

How many projects which used MongoDB have you worked on? How do you test your database queries? What is your way of the initial database seeding?

About year ago, my friend and I started building a basic CRUD app as a side project. On the back-end side there was nothing fancy — a simple GraphQL API server written in TypeScript. When it comes to storing the data, it was a typical use case for NoSQL database, so we’ve picked the most popular solution out there — MongoDB.

At some point we needed to import some development data to test our database queries. There are many tools for MongoDB data import, including the official one, mongoimport. I started to do a research and it turned out that none of them is good enough. …

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store