python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
MongoDB: merge two columns and convert type
Within each document, there are two columns representing, respectively and as strings, whole and decimal numbers of price:
{
"prod_id": "1022"
"whole_price": "10&quo...
Alessandro Ceccarelli
Votes: 0
Answers: 1
get additional data on same collection in Mongodb C#
I have a collection called "User". I'm passing userid to get the record. In addition to that i also need additional 10 last updatedAt(DateTime) record excluding the userid record but added t...
CKK
Votes: 0
Answers: 1
Mongodb group by values and count the number of occurence
I am trying to count how many times does a particular value occur in a collection.
{
_id:1,
field1: value,
field2: A,
}
{
_id:2,
field1: value,
field2: A,
}
{
_id:3,
field1: value,
...
user16463210
Votes: 0
Answers: 3
How to aggregate documents flow into a single document with an array field? (mongodb)
I have this dataSet:
[
{
userId: 1,
nickname: 'a'
},
{
userId: 2,
nickname: 'b'
},
{
userId: 3,
nickname: 'c'
},
...
]
And I would like, using aggregate, to a...
Tal Kohavy
Votes: 0
Answers: 1