0
votes
0answers
5 views

Account not being created in collection

I am using node.js and mongoose for mongodb and for some reason it is going to error and the account is not being created in my second colletion called friends... Here is the route file: ...
1
vote
0answers
21 views

How to create a new account in another collection through mongoose?

Hi I created a new schema for friendships, and when a user creates a new account I am trying to get a new account be created in the friends collection. Here is the code for the mongoose schema: var ...
0
votes
1answer
22 views

What is the relationships and differences among GridStore, GridFS, and Grid in MongoDB?

I am learning MongoDB by writing a node.js/express web application. I need to store some large files in the server's MongoDB, so I suppose the grid file system is needed. However, in the official ...
1
vote
0answers
11 views

Node - Passport Auth - Authed Post Route hangs on form submission

This is a weird one. Im Passport's 'Local Strategy' for my express app and i'm running into an odd issue. Essentially, I have three routes. Each have an auth check in place. app.get('/admin', ...
0
votes
0answers
17 views

encapsulate data repository with mongoose -> strange behavior

I am trying to hide away my database persistence from my business logic. I am implementing right now a persistence layer with mongo but I would like to make it exchangeable (in the future). In my real ...
0
votes
1answer
26 views

Array intersection in mongodb with Aggregation framework

I have a collection with schema (mongoose) say : { name : String, age : Number, params : [Number] // eg : params = [1,21,45,32,0] , usually they are very small arrays } The collection has ...
0
votes
0answers
39 views

Forgot password scenario using Backbone.js at client side and node.js at server side

Can any one provide an example of forgot password scenario using backbone.js at client side and node.js at server side and mongoDB as Db.The updated password should be updated in DB. Thanks for ...
1
vote
1answer
22 views

Ignore all fields (keys) into Mongo find

From documentation find() is defined like bellow: db.collection.find(query, projection) where the projection is an object that specifies the fields to return using projection operators. To ...
2
votes
1answer
52 views

Pushing changes to deployed Meteor.js app

After deploying a meteor.js app to my own server, what is the best practice to continue pushing code changes to the live app if I want to develop off the server? Do you upload the newly edited file ...
0
votes
1answer
35 views

In Meteor.js, Why is this.userId == undefined?

I'm learning Meteor by following a book, and right now we want to insert() the userId of the user that is currently logged in. Template.categories.events({ 'keyup #add-category': function(e, t) ...
0
votes
3answers
69 views

Loop is not outputting true or false based on query

please take a look and let me know why the loop's output is not correct? Basically I am looping through the friendId array of a user and through the user results for a search and seeing if they match ...
0
votes
3answers
46 views

Closures to get variable in node.js

Can anyone help me urgently for my Thesis software for get variable in closures.. this is my code in node.js var kepala = express.basicAuth(authentikasi); // authenticate for login function ...
0
votes
0answers
12 views

Mongoose times out and throws exception

When node.js server is inactive for some time, it crashes with following exception: events.js:72 throw er; // Unhandled 'error' event ^ Error: failed to connect to [------] at null. ...
0
votes
1answer
17 views

NodeJS Mongo - Mongoose - Dynamic collection name

So, I want to create a client side based paritioning schema, where I set the collection name as function(), my pseudo code is something like that: var mongoose = require('mongoose'), Schema = ...
0
votes
1answer
17 views

How to enable --rest in Windows XP 32 bit

I have successfully installed Mongo DB as a Window Service and verified service in my msconfig. It is version 2.0.6 which is compatible of my windows xp 32bit. And I just wanted to use the Simple REST ...

1 2 3 4 5 169
15 30 50 per page