NodeJSSection

This section will contain Nodejs and Backend related tips, scripts and snippets

How To Import JSON File To Mongodb Atlas Using NodeJS

nodejs
snippets

We used the NodeJS built-in fs module's readFileSync method to read the file synchronously. To upload the file we need a function that will import data to server.