Questions tagged as 'mongodb'

0
answers

Return data with the same field

I'm new to mongdb and would like to type a "Select" that would return people with identical fields eg: a collection has the fields: name, profession. Would you like to return all those who have the same profession as I do in Mongo?     
asked by 26.09.2018 / 21:24
1
answer

Create database and MongoDB user via shell

I need to create a MongoDB database and user, but everything via shell. I found something about --eval and --shell, but I could not get it to work, I'm trying this way: mongo mongodb://11.11.123.321:27017 --eval "db.createUser({user: "...
asked by 28.09.2018 / 22:44
2
answers

Update in array MONGODB

{ "_id" : "55dcb404478e7227203d3a65", "Nome" : "Grupo Familia", "Pessoas" : [ { "PessoaId" : "55dcb425478e72207833e970", "Nome" : "Carlos", "Habilidades" : [ { "HabilidadeId" : "55dcb433478...
asked by 27.08.2015 / 21:59
0
answers

Mongo DB without using the server band, is it possible?

Hello, I'm using Mongo on a Windows server, it's working, but even the application and mongo being on the same machine it ends up overloading the server band. Looking at the Resource Monitor in Network, Mongo is consuming a lot of bandwidt...
asked by 24.08.2018 / 14:45
0
answers

ERROR LOGIN EXPRESS-SESSION

I used session-express to create a login session on a system, but I am having a curious problem, I can log in normally, I have page control, stored sessions in the bank etc, however, sometimes in the system it has an hour that it reaches a "limi...
asked by 23.08.2018 / 17:40
0
answers

Can not read property 'collection' of undefined

Error: TypeError: Cannot read property 'collection' of undefined at Object.findAll (/Users/filipealves/node/crud/db.js:7:17) at /Users/filipealves/node/crud/routes/index.js:6:13 at Layer.handle [as handle_request] (/Users/filipea...
asked by 23.08.2018 / 11:07
0
answers

Render chart using mongoDB and chart.js

Hello, I have a question on how to render a chart with chart.js using mongo data. I've already been able to render one, but I'm having trouble rendering another, probably due to how the data is returning. The query is as follows: const t...
asked by 20.08.2018 / 15:04
0
answers

Aggregation in mongoDB is not working right

Hello I'm trying to filter some data to render a table in a view here. The template is EJS. What I need to do is: Count how many times an id number appears with a given status. I've been able to count the amount that an id appears, but...
asked by 10.08.2018 / 20:41
0
answers

How to give POST in a fetch in ReactJS?

I have an API in nodeJS and a SPA in ReactJ for registration of courses (only with the title of the same course, in a mongo bank), I have already done a function, with fetch, to search the registered courses and is working, but I do not know how...
asked by 12.08.2018 / 16:28
1
answer

Generate an array from a query in mongoDB (Mongoose)

Good morning! I need the data from a mongo collection on the front end. I'm using Mongoose as an ODM, and I was a little lost in sending the data to the front end. In the query it returns me the documents in the collection, and then I need...
asked by 01.08.2018 / 14:09