Answer the question
In order to leave comments, you need to log in
How to do adding products this way in Mongo?
Hello, we have an old site with about 200 products. Now they made a new one on the MERN stack. Initially thought to add manually then the idea appeared.
Our product has
1) Names
2) Price
3) Weight
If, for example, you upload products from the site in JSON format, how can you add products through a cycle, for example, in Mongo?) Thank you
Answer the question
In order to leave comments, you need to log in
You can
upload somehow JSON with products, then write a Node.js script that reads your JSON, bypasses all products, connects to mongo and adds products to some collection
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question