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
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...
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...
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...
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...
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...
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...
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...
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...
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...