Questions tagged as 'mongodb'

1
answer

Help with mongoose

Not understanding what happened: ready = function() { groups = mongoose.model('groups', schemas.group); groups.find({}, function(err, docs){ for(i in docs){ console.log(docs[i].name); } return docs; }); } console.log(r...
asked by 19.03.2016 / 05:28
1
answer

Divide the mongo data into more than one folder. Possible?

I have the mongodb running on a 500GB primary disk. As the base started to grow a lot, I put a 1TB slave disk and changed the data folder to it. I know that over time, this 1TB disc will also be little. I would like to know if there is a poss...
asked by 12.06.2016 / 22:49
1
answer

Return mongodb collections in json_encode PHP

I am mounting a REST API in PHP and I am not able to display all the collections returned from the mongo search, returns only one. Follow the code for anyone who can make a contribution I'll be very grateful. =]! private function slcTwitter($s...
asked by 22.07.2016 / 16:03
1
answer

How to save php session in MongoDB and retrieve data in NodeJS

I'm running a server in php and another in nodejs trying to get a simple authentication since every session runs on php and nodejs it simply processes some events however, and authentication is needed as I can with Mo...
asked by 30.05.2016 / 15:21
0
answers

Mean Stack Running the first project

Good afternoon guys, I'm trying to run the mean stack on my machine (Ubuntu 14.04, 64bit), I followed the site step by step and everything seemed to go well when I started up the cam in ternimal everything works fine, I'm going to access the url...
asked by 07.05.2016 / 17:20
0
answers

NodeJs for real-time applications

Recently, with the arrival of Angular2 beta, I have been looking for more information regarding real-time applications. I currently work with AngularJs (1.x) on front-end with apache server on MySql & Php to...
asked by 21.03.2016 / 00:36
1
answer

Relationship in MongoDB

Good afternoon, I'm in need of help from someone who has experience with MongoDB to get me out of a doubt. I'm studying about MongoDB and I came across the following problem: I have 2 Collections: Customers and Users Each client has its...
asked by 14.03.2016 / 18:46
0
answers

Reactive Programming With MEAN stack

I'm thinking of starting to develop a social network similar to that of instagram, for learning purposes, using MEAN stack. I thought about my models: User: var mongoose = require('mongoose'); module.exports = mongoose.model('User', {...
asked by 01.03.2016 / 05:02
0
answers

Doubt with FindOne in AngularJS using MongoJS error when searching

Hello, I'm trying to do a search on the bank with this code using the mongojs findOne, follow code: app.get('/detalhesContato/:id', function(req, res){ var id = req.params.id; console.log(id); db.contatos.findOne({_id: mongojs.Obj...
asked by 05.02.2016 / 21:09
0
answers

Aggregate with Sort - MongoDB

I have a query in MongoDB, I do the aggregate to count how many items there are in each category, everything works fine, however I can not sort the data, which would be sorted by the Title field. Here is the code, in which I have already made nu...
asked by 19.01.2016 / 14:47