Questions tagged as 'mongodb'

0
answers

How can I validate a field with MongoDB database?

Hello, I need to validate with normal laravel methods $this->validate($request, [ $request['key'] => $valid->Validacion ]); $request['key'] is a variable that happened to you $valid->Validacion is...
asked by 01.11.2018 / 00:24
0
answers

Video Server with Node, Express, MongoDB and Angular

I would like if you could guide me a bit, I am making an application of videos, the user registers, uploads videos, and sees them. The administrator accepts or rejects videos. The video is sent to a stock agency. My problem is the followin...
asked by 29.10.2018 / 21:15
0
answers

Response with status: 0 for URL: null

Dear I have the following error, I want to return an error message with the content inside a bootstrap alert, but it does not leave me as you see in the images. What do you think it could be, thanks in advance. I'm working with Node.js, Angular,...
asked by 26.10.2018 / 23:08
1
answer

Query failed with error code 13 and error message

I have a problem with a Spring boot project 2.0.3.RELEASE + mongodb 4 - Instance my DB as mongod --auth --config mongod.conf --dbpath=\data\mongo4\ - Create the user in the following two ways db.createUser( { user: "us1",...
asked by 24.10.2018 / 14:43
0
answers

Update a record in mongodb Laravel Jenssegers?

Hi, thanks for helping me. I have the following problem. I need to update a json that has the following structure. "Configuracion": { "Estados": { "Idioma": "es", "ComponenteActual": "datos-personales_2", "ProgresoDeBarra": {...
asked by 15.10.2018 / 04:15
1
answer

Pass mongoDB query to Mongoose

I need to pass the following MongoDb query to Mongoose: db.propiedads.find({ _id:ObjectId("5bb18cc42a8f2d23d8dfcd65"), "planes.plan":ObjectId("5bb565f6382cf30364b182e5") }) Currently this query is working in the mongo console. now I ad...
asked by 11.10.2018 / 04:12
0
answers

Redis and mongodb

After reading about these databases, I see many similarities and I find them very interesting, since the data structures that are saved adapt very well to object-oriented programming as well as dictionaries or lists. In MongoDB, the data is save...
asked by 08.10.2018 / 19:29
1
answer

Method $ push does not work (MongoDB, Mongoose)

How about. I'm having a problem I have an array in mongodb, which is supposed to store objects, but I can not add them. Student.update(mongoose.Types.ObjectId("5bc25777d9dded06a4635430"),{$push:{sanctions:{reason:'test'}}}); It is assumed t...
asked by 15.10.2018 / 17:35
0
answers

How to use a model in another model in mongoose | Node.js with Mongoose

I'm doing a task application with node.js, express and mongoDB, the fact is that I'm trying to use my data from my model called User in my model called Task, my schema User has a field called tasks which is an array where all the tasks go, then...
asked by 08.10.2018 / 17:52
0
answers

Apache Spark. Consult MongoDB database

I am working with Apache Spark and MongoDB in Java. I have a database with a lot of documents, maybe more than 30,000,000 million documents. Every time I make a connection in my project I charge this entire collection in a Dataset which is ve...
asked by 10.10.2018 / 18:34