Questions tagged as 'mongodb'

0
answers

Autocomplete with MongoDB

Hello. I have an autocomplete that I use MongoDB to save the records currently has about 8 million data in it. I'm using PHP to do the MongoDB searches and I have to use regex to find the results in the database, I've created the indexes o...
asked by 10.07.2018 / 19:31
0
answers

Node with mongodb not launching application

I'm trying to upload an application in Node with mongoose , (I'm studying, book MEAN home code) and it generates the following error when trying to start the file server.js where I started my application in Node, see below. Be...
asked by 13.07.2018 / 02:37
0
answers

Error inserting documents into MongoDB

I made these inserts through the mongo shell: db.Operators.insert([{ Name:'Paulo de Tarso', Version:1 }, { Name:'José de Arimatéia', Version:1 }, { Name:'Catarina Silva', Version:3 }]) This is my entity in the AP...
asked by 05.07.2018 / 19:35
1
answer

Connection mongodb with nodejs

How do I connect to the mongo database with nodejs? I already consulted several sites but I can not do it correctly! Thanks for helping!     
asked by 29.06.2018 / 18:19
1
answer

Error to use mongodb filter

I'm having an error trying to run a filter on the database. var params = '{"cd_entidade":"'+ vcd_entidade+'"}'; Movmaterial.find(params).toArray(function(err,docs){ if (err) throw err; console.log(docs); } There was an error that I...
asked by 26.06.2018 / 02:09
0
answers

How to install MongoDB Compass on W10 32bit?

Well, I installed "MongoDB" on my machine (W10 32 bit) after a long time browsing the Internet and got this success after watching this video on YouTube:     
asked by 11.06.2018 / 20:19
0
answers

GeoQuery: Calculate the size of a LineString

How would I make a query for the bank to return me the size in Km of a LineString . Let's suppose I have the following LineString saved in a document : { type: "LineString", coordinates: [ [ 53.3477, -6.2597 ], [ 51.5008, -0.1224 ], [48...
asked by 25.06.2018 / 22:20
0
answers

Join between String and ObjectId

How to do a join between two collections, using objectid in one and string in another? Sample document event : { _id: ObjectId(5b188aa5f9bf7c4c7d3cf637) name: "aniversario" date: "2019-09-21T03:00:00.000Z" teachingInst...
asked by 07.06.2018 / 05:39
0
answers

Image storage in mongodb

I'm developing a mobile app on react where there will be multiple profiles, with up to 5 photos each. Our api currently is made in aspnet core 2.0 and we use mongodb as database. My question is the following, what is the best way to accomplish t...
asked by 31.05.2018 / 23:46
1
answer

What is a Distributed Cluster?

I am studying about database, specifically the mongoDB. So, in the face of my ignorance, I would like to know what this expression, cluster distribuído or consulta em cluster distribuído , means.     
asked by 30.05.2018 / 00:17