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)
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
How to sort results of graphLookup in subdocument
I have the following stage in my aggregation pipeline:
{
$graphLookup: {
from: 'rateplans',
startWith: '$ratePlans.parentRatePlanId',
connectFromField: 'parentRatePla...
Mike
Votes: 0
Answers: 0
How to query a field inside array sub-document using ottomanjs using query builder
I could't able to query using arrays sub-document field using ottomanJS and I cant find any documentation for query building for array sub-document, any help would be appreciated.
import { Schema, Que...
noiissyboy
Votes: 0
Answers: 1
Mongodb multiple subdocument
I need a collection with structure like this:
{
"_id" : ObjectId("5ffc3e2df14de59d7347564d"),
"name" : "MyName",
"pays" : "de",
...
YoanP.
Votes: 0
Answers: 1