home
My post doesn't update after the user has corrected their error. For example: Scenario 1 (works):...
I have a model(User), which has two ref objects(Training, Evaluation), each ref object holds some...
I am working on MEAN application(Angular2+). I want to maintain a seprate data for each user. As of...
3 hours ago

mongoose useDb error

I am trying to connect to 2 mongodb databases. I have: var db =...
// controllers/users.js 'use strict'; var mongoose = require('mongoose'), User =...
is there any solution how to display a loader, while the data are being saved to the database,...
I've created a front end using React + Redux which should modify records in database. I also...
I'm modifying a flashcard application that is currently set up to pull questions, hints and answers...
This Code is fetching JSON data from an API service correctly but not updating a nested document in...
Sorry if this is a dumb question but I’m pretty new to programming and have been trying to...
I have a model that contains field with array of objects. { "name": "Bob", "colors": [ {...
I'm fairly new to programming and was just playing around with node js. I was using nodejs with...
I have 10.000 readings (documents) in MongoDB and I have an array of deviceIds. I need to get in...
I thought I could read my way to this solution, but I cant see what im doing wrong. Here is my...
var mapDevice = function(){ var values = { Device_Id: this.Device_Id, ...
So I am trying to create records in mongodb through mongoose and express, but I am getting...
I'm currently trying to grab a list of movies from the server using Mongoose, but I only want the...
I am trying to create a method for populating collection with a pre-defined Schema static method. I...
So I want to make a phonebook app where one contact has multiple numbers with certain categories....
is there a way to find all users and update them at the same time? This code works with...
In mongodb have two collections for now Event and Packages. So basically the model looks like...
I need to change my schema const dataSchema = new Schema({ trackingPrice: [{ timeCheck: {...
Im trying to insert new competitor if not exist, else only updating it, but im getting the...
I'm facing problem while doing aggregation in mongoose but reaming all queries are working...
This question already has an answer here: Is it possible to sum 2...
Mongoose provides a way to add new indexes automatically on app start using autoIndex option. But...
Am trying to upload an image file to cloudinary, and set the url to be saved in my mongodb for...
This question already has an answer here: Mongoose Unique index not...
I am working on chat and I want to get conversations order by created date and messages order by...
After I call populate on a subdocument, any subsequent populate calls on that subdocument fail. I...