Questions tagged as 'mongodb'

0
answers

How to install mongodb in php

Well I've been trying to solve this for some time and impossible, I try to connect mongodb to php. Image of the php version The steps I take are: I download the dll in this case I use this: php_mongo-1.6.8-5.6-vc11-x86_64.dll Then...
asked by 17.12.2017 / 20:54
0
answers

MongoDB - Create role for collection permissions

I am running the following code to create a role of permission to a specific collection: db.createRole({role:'emr_user_role',privileges:[{resource:{db:'tickets', collection: 'emr_interface'}, actions: ['find','remove','insert','update']}], rol...
asked by 14.11.2017 / 17:57
1
answer

Example of sharding in mongodb

Someone can help me perform a load balancing on mongodb, I'm following this sharding tutorial link but just at the start after executing the cluster = new ShardingTest ({shards: 3, chunksize: 1}) command I already get this error and I do not u...
asked by 05.11.2017 / 20:27
0
answers

Nodejs + mongodb Do find in different collections at the same time

Good, I am doing an application that to make a "traking" of how a process goes, I have made 3 collections: pending, processing, finished. The first question is: is there a function to move data from one collection to another? What I do now is...
asked by 21.11.2017 / 12:55
1
answer

Order consultation MongoDB

Right now I have the following MongoDB query through Mongoose: var g = new RegExp(search, 'i'); var query = { $or: [ {Tit: g}, {Resumen: g} ] }; Book.find(query).exec((err, books) => { if(err) { res.status(500).send({message: "...
asked by 26.10.2017 / 10:05
0
answers

Error in mongodb connection refused?

Good friends stackoverflow friends, I have an error when trying to run mongo db by means of the command "mongo" my operating system is manjaroos and here is the error that happens to me when executing it MongoDB shell version v3.4.9 connecting...
asked by 25.10.2017 / 22:39
1
answer

Create Processes stored in MongoDB [closed]

I come with my next question, is it possible to create processes stored in MongoDb or an alternative to speed up a query with a large amount of data in a Mongodb database?     
asked by 22.09.2017 / 20:49
1
answer

Nodejs and Mongodb: How to iterate a find () response

How do I iterate over a find answer on Mongodb in Nodejs? I have the following code: ConectarMongo() .then( function( db ){ var colClientes = db.collection( "clientes" ); var datos = colClientes.find({estado: "nuevo"})...
asked by 04.10.2017 / 02:08
0
answers

Change Server and Port in MongoDb

Good morning: I'm new to MongoDB and I've noticed that by default it comes in 127.0.0.1:27017, and I need to change it for my server and my port to be able to connect to my server in mlab. I would really appreciate the help Thank you!    ...
asked by 15.08.2017 / 07:06
1
answer

postman does not show me the data when "registering" with nodejs

In postman I get the following "error", but in the terminal that I am using, cygwin if it shows the data gave me the code: function saveUser(req, res){ var user = new User(); var params = req.body; console.log(params); user.n...
asked by 16.08.2017 / 18:31