Questions tagged as 'mongodb'

0
answers

Configure proxy for MongoDB Compass

I am using mongoDB on a workstation and I can not connect to the Cluster that I have configured in Atlas, the connection I try to make with compass and the mongo shell but in both it is failed. When I make this request from my personal computer...
asked by 29.05.2018 / 18:26
1
answer

Force Variable Type MongoDB (Java)

I would like to know if there is any method to "force" the type of variable within MongoDB in Java . I need to insert a Document with certain data, example: Document doc = new Document(); // Forzar que guarde Rut como Integer siendo...
asked by 29.05.2018 / 00:12
1
answer

conditional to execute query mongo

I have the following code, and I want to know if there is any mongodb function that returns true or false depending on whether the query was executed correctly or not. public function removepopup($id){ $collection = $this->connect()->...
asked by 24.05.2018 / 10:15
2
answers

Remote connection failed with MongoDB HELP

The truth is that I am a novice in programming and I have a task that is giving me a headache. It is to create a database in MongoDB that synchronizes with the data with an application in Java in NetBeans . I get it, inser...
asked by 17.05.2018 / 11:30
1
answer

I close the node terminal by mistake in the angle service create

When I save something to the bd (MongoDB) from the app, I close the node server in the terminal, however it saves the data. I have in the file api_v1.js: const express = require('express'); const router = express.Router(); const Profesor =...
asked by 06.05.2018 / 01:56
1
answer

MongoError: could not connect to the server [localhost: 27017]

When I write on the command line mongo return me this error: MongoDB shell version v3.4.10 connecting to: mongodb://127.0.0.1:27017 2018-05-01T11:42:17.843+0200 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket fo...
asked by 01.05.2018 / 11:47
1
answer

Save in several collections Mongoose same call

I need to save the information of my Arrays [data_inver], [asociar_inver] in Mongoosee at the same time in a same method of my API. Right now I am launching these two methods: // save multiple documents to the collection referenced by Data_...
asked by 24.04.2018 / 13:27
1
answer

Search with array in mongodb with nodejs

I am creating a restFull api with nodejs and mongodb. I'm trying to do a query on mongodb and nodejs, but I do not get the form. I have the problem in looking over the array that arrives by parameter, I try to make the $ in on the array and it g...
asked by 21.04.2018 / 13:47
1
answer

Mongo does not connect me to localhost

Hello, I have here all the code of js, I try to do node index.js and it does not connect me to the server, therefore I can not open theft 3t any idea? I do mongod and nothing. //DEPENDENCIES var mongoose = require('mongoose'); var m...
asked by 13.04.2018 / 12:46
0
answers

mongodb.service gives error during startup

I'm running mongodb 3.0.14 on a raspberry-pi 3 with raspbian stretch 4.9.41-v7 + (32 bits). Everything works fine except when the service has to start during system startup, which returns the following error message, preventing the service from...
asked by 15.04.2018 / 16:07