Questions tagged as 'mongodb'

1
answer

MongoDB queries using like and disregarding accents and case

I would like to know how I can perform queries in mongodb when I can refer to any position in the string (Like) but it would also be necessary to disregard special characters such as accents. I was able to disregard the special characters in...
asked by 30.09.2017 / 21:09
1
answer

Two query operations in a collection

I'm new to Node JS and mongoDB and am trying to run a find and then a update , but it seems that's not possible. Anyone have an idea? function CarrinhoDAO(conexao) { this._conexao = conexao(); } CarrinhoDAO.prototype.retira =...
asked by 29.09.2017 / 16:38
1
answer

Mongodb not installed

For some reason the server which I work has uninstalled mongodb. The bank had about 200GB of data. If I reinstall mongodb am I at risk of losing data? How can I do dump without mongodb?     
asked by 24.02.2017 / 20:06
1
answer

MongoDB: Projection of only one element of an array nested to another array nested to an object

I have the following situation: I need to query a document with a projection that returns only the first element of a list. But this list is inside another list, and that other list is inside an object that is inside another object in a document...
asked by 15.12.2016 / 22:02
2
answers

Error installing mongodb on windows

I tried to install mongo db on windows. I do the whole installation process but when the installation comes close to being finished the files and the mongo installation folder are deleted. An error has occurred and the installation is aborted....
asked by 11.04.2018 / 10:23
1
answer

I can not run the mongoDB server

I'm new to mongoDB, so I do not know how to solve it. OS: Windows 7 follow the command: C:\Users\Rodrigo>mongod and the error you get:    2018-03-21T16: 09: 27.837-0300 I CONTROL [main]   2018-03-21T16: 09: 27.841-0300 W CONTROL...
asked by 21.03.2018 / 20:28
1
answer

Security in queries with Redis and MongoDB and NodeJs

In the relational model, when using SQL we have to pay attention to SQL Injection in our application. In Redis and MongoDB, what care should I take when building a database query? Remembering that I'm using NodeJs, but I think it applies t...
asked by 30.09.2014 / 01:10
1
answer

Working with Date and Time in NodeJS, Mongoose, and TypeScript

Good morning everyone, I come from the java world and am starting in NodeJS. I'm having a hard time understanding how to work with dates and times in NodeJS. Here is an example of the template I want to use: export interface teste ex...
asked by 23.12.2018 / 15:57
1
answer

TypeError: this._connection.open is not a function

I'm doing activity to learn about NodeJS and MongoDB, and during the project, I have the error below: TypeError: this._connection.open is not a function As I am still in the learning phase, I could not understand it well, but it seems to me...
asked by 30.12.2018 / 01:01
1
answer

Access / Order an array dynamically in JavaScript / React [closed]

I'm trying to do an array sorting, it's already working. This code: search = async() => { const response = await api.post('/client/find', { "filter": this.state.filterSelected, "input": this.state.textSearch }); // ordenar de acor...
asked by 30.12.2018 / 23:42