All Questions
1,013
questions
0
votes
0
answers
18
views
When I update document it create new document in mongodb using mongoose?
When I update any value on frontend it get update in mongodb except boolen value . when I update boolen value on frontend it create new document for that change in collection. below is my code snippet....
0
votes
2
answers
38
views
MEAN Stack How to save data from radio type AngularJS form into MongoDB
I'm going nuts!
I have a multistep form to get information based on user choice. All of the choices are type = radio except name because it takes text as type. For that form, I've used AngularJS (I ...
0
votes
0
answers
52
views
MEAN stack delete request has 404 not found error
My post request and list all request are working fine, but I have problem getting my delete request to work. I have tested in Postman, but still have error. I think my delete url is fine, I can ...
0
votes
1
answer
350
views
Cant get the request content from a form with nodejs, express and mongoDB
I need to access the data posted by a form to handle it with node and express, so then I can add it to mongoDB. The answer I get for NAME is "undefined" and for DATA "[object Object]&...
0
votes
1
answer
3k
views
Getting Error: TypeError: Cannot read properties of null (reading '0')
I want to upload an excel file for that I used ng-click and define the fileUpload($event) function in the app controller scope and with the help of xlsx I want to read the file in JSON but while ...
0
votes
1
answer
2k
views
MongoDB database connection is not working in express with mongoose
I am trying to connect mongoDB database with my app but can not be succeeded. I followed another answers related to this but failed that is why I asked here.
This is an old project. It needs to ...
1
vote
0
answers
37
views
get individual data with response.data in angularjs. According to the code, the vm.userRole is undefined
vm.trialLogin =function(){
vm.credentials.userRole = "";
authentication
.userRole(vm.credentials.email)
.then(function successCallback(response){
...
1
vote
0
answers
46
views
Trying to implement angularJs $uibModal but is it not popping up. Giving an error angular.min.js:129 Possibly unhandled rejection: backdrop click
Trying to implement angularJs $uibModal but is it not popping up. Giving an error angular.min.js:129 Possibly unhandled rejection: backdrop click
(function(){
angular
.module('ubwinoApp')
.controller('...
0
votes
2
answers
659
views
merge child object in parent object in API
I have to combine all data in a single object. I have an array of objects, each of which have an embedded object, for instance:
[
{
robots: [],
lines: [],
_id: 5f753118391fe067dcfa1c88,
...
1
vote
2
answers
712
views
I am trying to connect Angular to MongoDB
I have a simple Angular app and it is running in Local Host 4200. How do I save the form values and store them in a MongoDB database?
0
votes
2
answers
52
views
Composite search condition in mongo using JS
I am new to Node JS and mongo DB. Working on a project to retrieve data from mongo db from js file. I have condition to search multiple column to get the results.
I have used one column find() method ...
0
votes
1
answer
886
views
it gives "SyntaxError: Unexpected token" when importing express-handlebars
when I add this line error appears and if removed error disappears
const expressHandleBars = require('express-handlebars');
This is the error,
C:\Users\Hp\sample-project\node-mongodb-api\...
0
votes
1
answer
1k
views
How to implement a "scroll to load more" using Node.js and MongoDB?
I have a Node server using Express+Typescript that connects to a MongoDB database using Mongoose.
In my DB I have a collection called Products that the frontend (Angular 9) requests to display them.
...
0
votes
1
answer
573
views
How can I implement MongoDB on Angular 9?
I'd like to know how to implement MongoDB to Angular 9 for Inserting, Deleting and updating data. I heard it can be done using Node JS.
I need some sample code for an academic project.
0
votes
1
answer
291
views
MongoDB - Posting and getting user specific data
I'm building a MEAN stack application with passport auth and just wanted to know the best approach to storing and getting user specific data.
So say for a simple example I had a collection of users ...