I'm trying to add an "Instructors" array into an already existing "Camps" array.  The hierarchical structure looks something like this:   owner = {      email : '[email protected]',     password : 'mypassword',...
Inserting into Mongo DB using the mongojs module fails cryptically,I have two functions,setupMongoDB and pushRequestsToMongoDB(what they do is self-explanatory). I get a request from my web-page and parse the data to JSON.  The console looks like thi...
I would like to be able to query my mongoDB and display this result on my web page made with Node...right now I am using the mongojs driver - I've found the driver very very good for putting data into the DB - the syntax is the same as the Mongo...
Does anyone have a good approach for a query against a collection for documents that are older than 30 seconds. I'm creating a cleanup worker that marks items as failed after they have been in a specific state for more than 30 seconds.  Not that...
Presently being driven up the wall by this error.  I am running a node.js app with the mongojs wrapper for mongodb. I Started mongod on the default port, then ran  var db = require('mongojs').connect('localhost:27017/my_db'); var user...
I'm using mongoJS to process my database query. I came across an issue which the string contains HTML tags, I'm using regex expressions to search my string in the collection. How to search the text by ignore the HTML tags?  var userInput = $s...
I'm trying to store and retrieve a date in mongojs. Here's how it's saved:  var game = { startedOn: new Date() }; db.games.save(game);   When I fetch it, the date is not a date anymore. It's some kind of wrapper around a date.  The _d...
I have a lot of data to fetch from a mongodb database. I can't load all the data at once on the server because it's too big and I would run out of memory.  If I use forEach, will it fetch everything and load everything on the server then appl...
I want to find document in a mongodb table using node js.  I'm currently working with mongojs plugin.  Here's what I have problem with:   I connect into DB. I get the current timestamp Every 10 seconds I want to print all elements added withi...
I am working on a web application and cannot get myself over my issue. On the website there are categories. Main categories and each category has own subCategories and the subCategories could have also subCategories. All of them are building up by th...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.