Questions tagged as 'mongodb'

2
answers

Is it wrong to start mongodb?

I have already executed the mongod commands and then mongo, which are the ones that appear in the mongodb documentation, but I get those errors. I've also created the following directory C: \ data \ db     
asked by 30.11.2016 / 21:20
1
answer

Error: "Can not set headers after they are sent"

In a controller I am using promises because I perform multiple queries and I want to avoid having a multitude of callbacks, if you do not find a value must send a message to the client and not pass to the next promise. This is my code: va...
asked by 20.01.2016 / 18:04
1
answer

Pymongo find by _id field

I'm trying to check my Mongo database to find a value for the "_id" field with the value returned by the url_for () function from the template. Although I have verified that the value that appears in the URL and the one that passes to the router...
asked by 04.12.2018 / 16:24
1
answer

Save dates with hours with 12-hour format in mongo with c #

I have a date but when I save it mongoDb puts me the time of the date in 24 hours or military time format. Example: The date is this {6/04/2017 3:03:00 p. m.} and it keeps it that way {2017-04-06 15:03:00.000} What...
asked by 12.10.2018 / 19:00
2
answers

Question about MongoDB and NodeJS

I'm training MongoDB and NodeJS, although I have some doubts. In my APP file I defined the following Here I put my code (do not pay attention to the XD notes) //esta variable almacena las funciones del paquete express, el cuál es el núcleo...
asked by 01.08.2016 / 02:13
1
answer

MongoDB - Apply filter on the result of a $ group and $ project

I have a problem getting a result with a query in the MongoDB shell. Apparently, the structure of the information stored is not as complex, and neither should the query, but I have not. Also, I have to be careful with the processing time, since...
asked by 02.06.2018 / 02:44
1
answer

Do find using the result of another find (which returns multiple objects)

What I want to do is with the result of a find (which returns several objects to me), again doing a find in DB looking for all the records that have the id of the records that I got in the previous find (taking into account note that they are mu...
asked by 08.03.2018 / 03:58
2
answers

Match two models in mongodb

I am in trouble to be able to relate two models in mongodb. I was looking for some forums the methods populate() , aggregate() . But they do not work for that matter (I think). I have model A {title : 'hola'} , model B...
asked by 10.08.2017 / 16:12
1
answer

Array Queries in MongoDB

I have the following database [ { "codpeli": 1, "titol": "La La Land", "sinopsi": "Mia (Emma Stone), una solitaria aspirante a actriz y Sebastian (Ryan Gosling), un carismático aspirante a pianista de jazz, se ena...
asked by 14.06.2017 / 12:10
1
answer

Delete productId with Nodejs & Mongodb

Good! I am developing a mini API RESTFul with Node.js and Mongodb . The question is this, I am developing 4 basic functions for my API that would be GET, POST, UPDATE, DELETE . I'm having an error when performing...
asked by 25.04.2017 / 17:32