Mongodb – Data not showing React Axios
I am trying to get data using axios but it doesn't seem to load onto the page. I have used the link in postman and retrieves all the data so I assume the get request from the server is fine…
I am trying to get data using axios but it doesn't seem to load onto the page. I have used the link in postman and retrieves all the data so I assume the get request from the server is fine…
I'm wokring on a simple suggestion app it has authenctication and context api for State management, I can create, read, update and delete a suggestion but I've been trying to make a delete request but its not working. I console.log…
I have build an small web application with node js express with html and css which starts from the below command in npm start app.js but the same thing doesnot work in aws amplify in order to launch this as…
let mongodb = require('mongodb').MongoClient; let express = require("express") let app = express() let connectionString = 'mongodb://ToDoAppUser:[email protected]:27017,ac-u9kgapm-shard-00-01.8rdkdoi.mongodb.net:27017,ac-u9kgapm-shard-00-02.8rdkdoi.mongodb.net:27017/?ssl=true&replicaSet=atlas-68qno6-shard-0&authSource=admin&retryWrites=true&w=majority' let db mongodb.connect(connectionString,function(err,client){ if (err) throw err db = client.db() app.listen(3000) console.log("Database connected."); }) app.use(express.urlencoded({extended : false})) Trying to retrieve data from MongodB As…
The code works well in Postman. But when fetching it in the front-end the response is not working. I can't find the solution. I am new in MERN stack. It gives me error. product.action.js:7 Uncaught (in promise) AxiosError {message: 'timeout of…
I am trying to fetch some data from firebase datastore. When tring to push the same data to a node js based rest api, its not showing any data but no error as well. And while checking though postman, its…
First off, I need some suggestions regarding QR code in my app. I am building a parking-management app in node.js in which there are different tables like user, booking, parking etc. Now, Users will search for parking availability and book…
I am building a social media application that uses multiple user-uploaded images. I was told that the best tool for handling user-uploading images is Cloudinary, but if possible I want to directly store images in my database. I heard that…
When i have an object with a nested object within, whose keys are numbers and send it to my node.js server, then the nested object is converted to an array. How can i prevent this ? Client: $.ajax({ url :…
I am using findOne() to extract a document. On printing the returned value its prints the correct result but on looping over it, it prints the model instead of the original document. The document in the City table is stored…