Questions tagged as 'mongodb'

1
answer

Access one module from another

Well, I'm learning how to implement MVC with the Express framework, but I came across the following situation in my app.js file: var express = require('express'); var consign = require('consign'); var bodyParser = require('body-parser'); var...
asked by 22.05.2018 / 15:31
0
answers

find command to create "Virtual Field"

Context I have a collection called "request" one of the properties is called body (in the format string). The content of the body is a json with a property called "date". What do I need to solve? To filter all docs with a date greater t...
asked by 06.06.2018 / 19:01
0
answers

Error in implementing image upload on Node Express

Please see the code below function uploadImage(req, res) { var userId = req.params.id; var file_name = 'No limite...'; if (req.files) { var file_path = req.files.image.path; var file_split = file_path.split('\');...
asked by 21.05.2018 / 17:29
0
answers

Display a list of users using mongodb using node.js and HTML

Hello, I'm trying to create a method to display a user from a list of users from my database. Below I show how I insert each new user (working). First the index.js var mongoose = require('mongoose'); var express = require('express'); var rou...
asked by 21.05.2018 / 19:38
0
answers

Problem in logic for implementing authentication with Node Express

The people in this group forgive me if the explanation is a little long and meaningless, it's because I'm taking an online course from udemy and the teacher takes a lot to answer so I'll take a step by step from what I'm doing. At first I can sa...
asked by 22.05.2018 / 11:59
0
answers

Application in codeigniter does not work with mongodb

I have a system in codeigniter and I can not make requests using lib mongo_db. It is not possible to connect, authenticate and / or fetch data from the database. I think the library is corrupted, because the system is apparently ok and by the sh...
asked by 17.05.2018 / 03:51
0
answers

return object returned from the database to the front end

I'm not understanding why these returns On server node.js: //Insert user router.post('/', async function(request, response) { let object = { name: request.body.userName, password: request.body.userPassword } le...
asked by 23.05.2018 / 03:10
1
answer

MongoDB Extension for PHP 7.2.3 on Ubuntu 18.04

I've been running MongoDB along with PHP on Ubuntu Server 17 for some time. I recently installed a copy of Ubuntu Server 18.04 and did the same installation procedure. However, even including extension = mongodb.so in php.ini, it does not load i...
asked by 13.05.2018 / 16:15
0
answers

Mongodb remote backup

I have an application in production using NodeJs and MongoDB through Mongoose. This same application has a version that runs on a local offline server. Both databases have the same data and back up the app online to offline. It turns out that no...
asked by 11.05.2018 / 23:10
0
answers

Mongo access using fetch javascript

Hello, I'm developing a simple system with nodejs and javascript. The system consists of the registration of a driver, a passenger and a race containing a driver and a passenger. I am using mongodb as a database. I have already created the AP...
asked by 12.05.2018 / 17:37