Questions tagged as 'mongodb'

1
answer

How to revert the $ unwind operation in MongoDB 3.4?

Imagine a product collection: db.produtos.find() [ { _id: "produto01", cores: ["preto", "branco", "ouro"] }, { _id: "produto02", cores: ["branco", "ouro"] } ] Each product has a field called colors, which is a list o...
asked by 27.12.2017 / 00:22
1
answer

MongoDB no Azure

Some time ago I had an unpleasant surprise on my azure invoice because of a MongoDB database that I owned for access to an application. I created, for example, the documents: Client Product Request I did all the programming in a re...
asked by 14.11.2017 / 18:26
2
answers

How to give a disabled in a form depending on which radio button to choose?

Good afternoon ... I have the following radio buttons: <input type="radio" name="radio1" value="entrada"> Entrada <input type="radio" name="radio1" value="saida"> Saida I also have the following forms: <div class="form-...
asked by 14.11.2017 / 20:49
1
answer

How to integrate and make queries with pymongo?

I'm learning to integrate Python and MongoDB, and because of that, I set myself a challenge: to create a small program to register football players. My program has two modules, info_player and info_team. My intention is to run the program int...
asked by 07.11.2017 / 12:06
1
answer

Export a mongodb collection that also brings the size of the document

I have the export of a collection that has some documents, I need to export one of these documents and its size. I've tried something like this: mongoexport -d test -c records -q '{ a: { $gte: 3 } }' --out exportdir/myRecords.json...
asked by 15.09.2017 / 17:48
1
answer

Hibernate module error OGM + MongoDB inside Wildfly 10

11:13:17,164 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.module.service."deployment.brx-plataforma.war".main: org.jboss.msc.service.StartException in service jboss.module.service."de...
asked by 18.02.2017 / 14:53
1
answer

Read line to file line .txt

I'm trying to read a .txt file from 3.5GB line-by-line and save in the db mongo. Columns use the "|" tab. and I'm using Node js with Express. I did the test with a file smaller than 43 lines and everything worked fine but with the largest file I...
asked by 17.06.2017 / 22:13
1
answer

Changing the default mongodb database of a Meteor application

Hello, I'm starting to work with Meteor and I'm having a hard time defining where the database of the same along with the access user with authentication. Searching the internet, I found some references that say I should start the application...
asked by 19.12.2016 / 15:25
1
answer

Return the maximum sum value of the collection with MongoDB

I have collection in MongoDB and it has several records in it and I need to add a column by UF and then return the largest value of that sum. For example UF: 'SP', Valor: 10 ---- UF: 'SP', Valor: 23.5 ---- UF: 'RJ', Valor: 40 -...
asked by 10.12.2016 / 23:46
1
answer

How to get DB value for a variable?

I have the following question: I have a database in mongoDB, I do the search of the data by NodeJS it returns me all right, however I would like to play this search value for a variable, to make a comparison. Type I search the date in DB and wou...
asked by 04.12.2016 / 13:22