Skip to content Skip to sidebar Skip to footer
Showing posts with the label Mongodb

Meteor: Adding An Associated Record Doesn't Work

I have Posts and Comments and I'm trying to build the UI for adding a comment to a post using R… Read more Meteor: Adding An Associated Record Doesn't Work

Rest Api Call Works Only Once

I have written a Nodejs REST API application with a number of functions. However when I consume one… Read more Rest Api Call Works Only Once

Cast Plain Object To Mongoose Document

UPDATE 1: 5 votes have been received, so I have submitted a feature request: https://github.com/Lea… Read more Cast Plain Object To Mongoose Document

Why Getting Error When Updating Mongodb?

I am building backend with MEAN stack, but when I try to update document in the db i am getting an … Read more Why Getting Error When Updating Mongodb?

Change Variable Value In Document After Some Time Passes?

I'm quite new to web development and I want to learn new things. I have a mongoose schema (I wo… Read more Change Variable Value In Document After Some Time Passes?

Mean Stack: How To Update A Function's Result To The Database?

I'm having a commenting system and I need to store the upvotes in the database whenever the upv… Read more Mean Stack: How To Update A Function's Result To The Database?

Using Async With Mongodb To Fill Collection Documents In Order

I decided to use Async module to populate a mongodb collection in the order that I want. Without As… Read more Using Async With Mongodb To Fill Collection Documents In Order

How To Export An Object That Only Becomes Available In An Async Callback?

I have a db.js file in which I set up a MongoDB connection. I would like to export the database obj… Read more How To Export An Object That Only Becomes Available In An Async Callback?

Using An Object Property As The $maxdistance Argument In A Mongodb Geolocation Query

I would like to write a $near query with a $maxDistance argument whose value is not constant. For … Read more Using An Object Property As The $maxdistance Argument In A Mongodb Geolocation Query

"javascript Heap Out Of Memory" While Streaming Large File

I am trying to XML -> JSON -> MongoDB on my server. I have a NodeJS application which streams… Read more "javascript Heap Out Of Memory" While Streaming Large File

Why Does Mongodb Require `unique:true` To Create A Collection?

I am developing a NodeJS application with Express and MongoDB. My objects were not getting saved to… Read more Why Does Mongodb Require `unique:true` To Create A Collection?

Update Database Entry Using Mongoose

Hello i am using mongoose. I have built this query that finds my desired project : const projects =… Read more Update Database Entry Using Mongoose

React.js: Raw Html String Does Not Gets Recognized As Html Elements From Node.js

I am sending a raw HTML from node.js to react. and It was successful. However, when I try to render… Read more React.js: Raw Html String Does Not Gets Recognized As Html Elements From Node.js

How To Pass Data From Controller To Router In Node.js?

I have folder diagram where i have two files controller and router , Now i have pulled the data fro… Read more How To Pass Data From Controller To Router In Node.js?

Mongo Using Mongoose In Node Want To Use Or And In Query

I have a situation where I have to check name of the company and code of the company and if both ma… Read more Mongo Using Mongoose In Node Want To Use Or And In Query

Node.js Mongodb Javascript Scoping Confusion

I'm developing a express.js application, without mongoose. What I'm trying to do is, to enc… Read more Node.js Mongodb Javascript Scoping Confusion

How To Store Session Values With Node.js And Mongodb?

How do I get sessions working with Node.js, express@2.0.0 and mongodb? I'm now trying to use co… Read more How To Store Session Values With Node.js And Mongodb?

How Do I Access Mongos Db.system.js In Meteor?

I can access it fine using meteor mongo but I need access to it on the server... How do I do that? … Read more How Do I Access Mongos Db.system.js In Meteor?

Mongodb Object Key With Es6 Template String

I'm trying to update an array in my collection with this: var str = 'list.0.arr'; … Read more Mongodb Object Key With Es6 Template String

Perform $inc In Instance Method, Get Updated Document

I have an instance method in Mongoose where I need to perform Mongo's $inc operator on a field.… Read more Perform $inc In Instance Method, Get Updated Document