Questions tagged as 'mongodb'

0
answers

Error "dup key: {: null}" mongodb

I have a mongoose schema like this: const mongoose = require('mongoose'); const Schema = mongoose.Schema; const thingsSchema = new Schema({ userId: { required: true, unique: false, type: String, }, }); module.ex...
asked by 06.06.2017 / 22:22
1
answer

I get this error cant set headers after they are sent

Hello people, I am using passport-local and what I want to do is show the user when he / she does the login My code is this var passport = require('passport'); var localStrategy = require('passport-local').Strategy; var User=require...
asked by 21.05.2017 / 01:40
1
answer

Nodejs, update data in mongodb

I'm trying to create an api where I receive 2 parameters, the id of the session and the seat that needs to be reserved [ { "id":1, "tanda" : "7:30am" , "asientos" : [ 0 , 0, 0, 0, 0 , 0, 0, 0, 0 , 0, 0, 0, 0 , 0,...
asked by 01.08.2017 / 19:43
0
answers

Save json every X time in mongodb python flask

The problem I think occurs when you try to do db = mongo.bd.openweathermap, what appears to me by console No handlers could be found for logger "apscheduler.executors.default" from flask import Flask, render_template, request, jsonify, redi...
asked by 05.04.2017 / 16:03
1
answer

Node.js + node-xmpp.js + mongoseIM

I have a structural dilemma for my application. Currently I have an application consuming an API Rest made with Node and MongoDB. And I want to add the chat functionality. I was reading and I think the best option is to use the XMPP protocol for...
asked by 12.04.2017 / 23:05
0
answers

Big Data project start council [closed]

Good evening, I have been assigned a project and I do not really know where to start. By curl I receive a json, the client wants to save every second the received data. Right now they have a cron task that calls a php file that performs an...
asked by 30.03.2017 / 21:30
1
answer

Doctrine MongoDB

I'm trying to install the Doctrine ODM for MongoDB through Composer and I get the very famous error that I'm missing the mongo extension for php    Problem 1       - Installation request for doctrine / mongodb 1.4.0 - > satisfiable by d...
asked by 14.03.2017 / 21:23
0
answers

Communication between different websites through rest

I have a question, suppose you have a domain www.example.com and 2 subdomains www.sub1.example.com www.sub2.example.com I clarify that the 3 pages use mongo express and the whole node stack. If you would like to communicate and shar...
asked by 23.03.2017 / 19:35
1
answer

Help with Mongodb + PHP + hightcharts

Dear, the following code does not work for me, I do not know what is the part I am doing wrong, this is the code: I wanted to see a line chart of the api highcharts <?php $dbname = 'db'; $m = new MongoClient(); $db = $m->$dbname; $c...
asked by 22.02.2017 / 21:03
0
answers

Error MongoError: Can not extract geo keys

I'm trying to insert a GeoJSON object into a mongo database { name: "cancha de san lorenzo", date: new Date(1489203188492), loc: { type: "Point", coordinates: [ 19.3096246, -99.6301335 ] } } through the following i...
asked by 11.03.2017 / 04:46