D
D
DeniSidorenko2021-02-24 09:55:21
MongoDB
DeniSidorenko, 2021-02-24 09:55:21

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

1 answer(s)
E
Egor Zhivagin, 2021-02-24
@DeniSidorenko

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 question

Ask a Question

731 491 924 answers to any question