Questions tagged as 'mongodb'

0
answers

MongoDB query with nested JSON

Is it possible to perform a search inside a json nested with mongoDB? that is, I would like to obtain the content of the id: "A0002" [ { "id":"a001", "nombre":"#0f0", "sub":[ { "id":"ag01", "nombre":...
asked by 15.04.2018 / 01:17
0
answers

Mongoose massive inserts / updates

My application is powered by CSV files, which are parsed to JSON without problems. Once I have the JSON object I start importing let calls = []; for (let i=0; i<json.length; i++) { calls.push(import(json[i]); } Promise.all(calls)...
asked by 16.04.2018 / 14:14
1
answer

Failed to save items in MongoDB

I'm having a problem. When I enter data in an HTML and send it to the MongoDB database, the empty elements are sent to me, that is, the attributes that are saved do not contain the data I enter in the html. Here I show you the example: addItem...
asked by 10.04.2018 / 14:59
1
answer

How to do mongoimport from terminal

Hi, I'd like to insert two documents into my database in my 'movieList' collection, but that's not how it works and I do not know why, I could do it from robomongo, but I want to do mongoimport --db movies --collection --movieList - file movies....
asked by 02.04.2018 / 17:57
0
answers

Database in MongoDB

I would like to ask about the logic of a database in mongoDB for an educational institution. An educational institution has several entities such as: administrative staff, teachers, students, parents, subjects, grades, parallels, LEGAL YEAR,...
asked by 04.04.2018 / 23:07
0
answers

Problems showing images with PUG

I am designing a CRUD with images, using Mongodb with Nodejs and for the PUG views, but I have a problem when displaying the images; using the browser element inspector, it just tells me that could not load the image , I'm thinking that the pro...
asked by 05.04.2018 / 01:19
0
answers

Difference between these two update in robbery mongo 3t

What is the difference between these two, I had thought that by passing the multi option I would select all the documents that have match to do the update but only does it from the first one , anyway I think it is silly to use multi if I have t...
asked by 03.04.2018 / 17:33
0
answers

Change the default storage directory in MongoDB in Windows 10

I am trying to change the default data storage directory in MongoDB, permanently from C: \ data to a directory in another unit. How can this be achieved in Windows 10? I have read that you can change this option from mongod.conf but this is in g...
asked by 30.03.2018 / 20:38
1
answer

DELETE Not Found with Postman in APIREST NodeJs with Mongo and Mongosoe

How about classmates? I'm working on an api rest with NodeJs, MongoDB and Mongoose, but when implementing DELETE by Id, the postman sends me an error      Cannont DELETE /api/product/5aae8f9df40f3924a4b984f In the status of the Postman sends a 4...
asked by 18.03.2018 / 21:24
0
answers

Details of a Product Vuejs

I want to show the details of a product, but I have not managed to show the information. I'm working with Vue Mongo Node and Express When I give http://localhost:3000/item/5aa811e5aa7f7d414c707127 appears the information of the database,...
asked by 15.03.2018 / 00:50