Questions tagged as 'mongodb'

0
answers

as it is in nodejs to add +1 to a section of the mongodb schema

Good evening I would like you to explain to me how it would be done to add by vue to mongodb ++ in victories const Schema = new Schema nombre: string, victorias: Number, may be the question somewhat confusing just beginning to practice and...
asked by 10.12.2018 / 20:19
1
answer

Use $ diacriticSensitive with match in Mongo

I am trying to perform a search in a mongo document that has the energy word saved in the name, I make the query in the following way: {'$match': { 'name': { '$regex': '.*energetico.*', '$options': 'i...
asked by 13.12.2018 / 22:58
0
answers

error 500 by postman when connecting phalcon with mongodb

I am trying to connect the phalcon framework with the non-relational database mongo DB, by making the configurations shown on the phalcon page and some forums, I still can not make the connection and every time I want to make a query or any inte...
asked by 04.12.2018 / 17:50
0
answers

I open many connections in my API and stay open and I need to close each of those connections

<?php $mng = new MongoDB\Driver\Manager("mongodb://localhost:27017"); $condition = ['shape'=>['$nearSphere'=>[ '$geometry'=>[ 'type'=>'Point', 'coordinates'=>[-98.280735, 19.063866]],'$maxDistance...
asked by 27.11.2018 / 01:44
1
answer

query in mongoDB with json nested

good morning. I have the following collection in mongoDb: { "signupDate": "2018-11-22T19:14:02.047Z", "_id": "5bf700269e5b59276885eda5", "userName": "pruebas", "email": "[email protected]", "password": "abc1234", "interests": "{\"followEmai...
asked by 23.11.2018 / 16:50
1
answer

Create objects with references Node Js and MoongoDB

Hello, I have the following data models in mongo db var mongoose = require("mongoose"); var accountSchema = new mongoose.Schema({ name: String }); module.exports = mongoose.model("Account",accountSchema); A second model var mongoose...
asked by 21.11.2018 / 01:47
0
answers

insert same value denied

good day, I have a query where I should change the value of a boolean for its denied value, for it would take care of the positional $ operator but what I do not find in the documentation is how to deny it, I leave the query that I am using:...
asked by 20.11.2018 / 16:40
0
answers

Show JSON Object from MongoDB

I have a problem showing an array of a JSON object from MongoDB. The Ajax request works correctly and the data is displayed well by the console. My problem comes in the view, when I try to show that data in the html and the component cl...
asked by 19.11.2018 / 16:47
0
answers

Data from an SSE with Angular and Spring

I have my code in Anguar to consume an SSE: import { Component, OnInit, NgZone } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; export interface Prueba { id: string, nombre: str...
asked by 10.11.2018 / 19:41
0
answers

Import a CSV file to MongoDB with PHP

I am trying to import a csv file into a mongodb collection, I have seen that it can be done through the mongoimport command, however I need to do it through php because I want to validate the entered data afterwards. So far I have managed to ope...
asked by 05.11.2018 / 22:54