Questions tagged as 'mongodb'

1
answer

MongoDb and node js

I have an application made in reactjs , I manage the dependencies with nodejs and I want to connect to a database that I have installed locally. install express and mongodb using npm. this error is generated when I lift the application:...
asked by 21.01.2017 / 05:13
1
answer

Multi Relationships with Mongoose

is the first time I write, I have always solved the problems with questions from others, but this time I have not found a solution for this: I have a Schema where I have several references to other Schemas: var mongoose = require('mongoose'...
asked by 23.01.2017 / 18:21
1
answer

Validate models with mongoose nodejs

I have my user model. // models/user.js var mongoose=require("mongoose"); var Schema=mongoose.Schema; var userSchema=new Schema({ name:{ type:String, required:"Es necesario un nombre", maxlength:[10,"Nombre muy larg...
asked by 24.09.2016 / 17:46
1
answer

MongoDB very expensive counting query

I have a t2.medium server on AWS provisioned with 3 hard disks that work at different speeds to store and process the data. The disk where the data is stored has an IOPS of 1200 and a capacity of 200GB. On the other hand I have the following...
asked by 25.08.2016 / 23:47
2
answers

Deserialize JSON from MongoDB on Android

I am relatively new in the mobile development I was working with Mongo consuming an API that local but now I want to know how to deserialize the JSON data that I consume from the API. Here is how I am working (Localhost), I have managed to...
asked by 02.01.2019 / 04:06
0
answers

Queries with MongoDB

Good afternoon, I have the following concern: I have defined a POJO as you see it below: @Id private String idInformacion; @Indexed(direction = IndexDirection.ASCENDING) private Pais pais; private Date fechaCreacion; private String nombre;...
asked by 27.12.2018 / 22:45
0
answers

geojson for MultiPoint with mongodb and nodejs

I have defined this Scheme: let capaSchema = new Schema({ nombrecapa: { type: String, required: [true, 'El nombre de la capa es necesario'] }, descripcion: { type: String, required: [false] }, geojson: Object([ geoSchema ])...
asked by 27.12.2018 / 23:00
1
answer

Search for an element in a MongoDB database using Nodejs

Alright, here I have a code where I have my Express server, the connection to the database and apparently everything works fine. const express = require('express'); const path = require('path'); const cookieParser = require('cookie-parser'); c...
asked by 22.12.2018 / 19:53
1
answer

Mongodb error: $ in needs an array

I am modifying the delete function in a crud. Originally taskID was a single ID to be deleted; while in my program it is an array of multiple IDs. I do not know what the line of code with mongodb or mongoose would be like to eliminate all the ta...
asked by 04.01.2019 / 05:08
0
answers

Error creating connections to two databases in MongoDb in SpringBoot

Following a tutorial I created two connections to MongoDb databases in SpringBoot that worked perfectly, but when switching to the most recent version of the STS (Spring Tool Siute), more specifically to Spring Tool Suite Version: 3.9.6.RELEA...
asked by 11.12.2018 / 18:06