Questions tagged as 'mongodb'

2
answers

Assign return from findOne to a global variable node Node.js

I could not do this assignment, is something missing? global.pedido = db.collection('configuracoes').findOne({ parametro: "pedido_num"})     
asked by 07.01.2018 / 16:11
1
answer

Deprecated mongoose method

I'm trying to make a connection with mblab but the connection method is deprecated. Version of the method is 4.9.7. What I need is 4.13.7. Structure: server.js const express = require('express'); const morgan = require('morgan'); con...
asked by 26.12.2017 / 04:59
1
answer

Indexes in Mongo

I'm starting studies with indexes. I have a base in MongoDB where the documents have about 10 fields. Searches can be done using all these variables. I created an index with all the fields, and I thought it would work ok, but I always get a "...
asked by 15.12.2017 / 06:07
0
answers

Insert error: this._connection is not a function

I'm trying to make an insert into the bank using nodejs and mongodb, but I get the following error: TypeError: this._connection.open is not a function at UsuariosDAO.inserirUsuario (E:\docs\projetos\task_manager\app\models\UsuariosDAO.js:1...
asked by 07.12.2017 / 19:34
0
answers

Mongodb - MMapv1 or WiredTiger?

We started a project with mongodb, at the time testing the WiredTiger engine. This engine was more interesting because it packs data much more than mmapv1. But sometimes the mongodb just falls down. So we tested mmapv1, which, despite not compre...
asked by 27.11.2017 / 11:21
1
answer

Query to get date difference

I would like to know how I can make a query of this type in MongoDB with date difference and taking the last record in a date range. SELECT *, DATEDIFF(NOW(),DATAHORA) AS DIAS FROM TBLTRANSFERS WHERE IDTRANSFER IN (SELECT MAX(IDTRANSF...
asked by 14.11.2017 / 15:41
0
answers

Page is not rendering

I'm setting up a web application using Keystone JS. I configured some routes, and views, and also set up a "virtual store" structure to add and extend sightseeing tours. The problem, that due to some configuration, the site is not renderin...
asked by 06.11.2017 / 17:59
1
answer

Mongo driver for php only works with mpm_prefork?

Looking for better performance for my application I've changed the MPM of apache from prefork to event , but when I restart apache with the new processing module o mongodb module does not work, when accessing the apache log fi...
asked by 12.11.2017 / 21:41
0
answers

Server connection pool for web application

I would like to know if it is possible to deploy a pool of connections on a server and have it deploy connections to java desktop applications, if possible I would like a targeting than to search to implement this using Java and MongoDB. Sce...
asked by 23.10.2017 / 19:21
3
answers

How to generate ios build with IONIC project

Good afternoon, I'm on a project made in ionic, nodeJS and MongoDB. I have access to the code, which is in the BITBUCKET repository but I do not know how to create the project build in xcode (because I use MACOS). Does anyone know how I can g...
asked by 21.10.2017 / 22:14