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...
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...
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-...
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...
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...
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...
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...
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...
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
-...
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...