Skip to content Skip to sidebar Skip to footer
Showing posts with the label Aggregation Framework

How To Find Documents With Exactly The Same Array Entries As In A Query

I have documents in a collection, looking like this: [ { userId: 1, itemsIds: [399957190,… Read more How To Find Documents With Exactly The Same Array Entries As In A Query

Mongodb - Unwinding Nested Subdocuments

For the following dataset example: lists { _id: 1, included_lists: [ 2 ], items: [ 'i1' ]} … Read more Mongodb - Unwinding Nested Subdocuments

Aggregate Multiple Arrays Into One Huge Array With Mongodb

I got a collection with documents such as those: { '_id': 0, 'pictures': [ … Read more Aggregate Multiple Arrays Into One Huge Array With Mongodb

Time Series And Aggregation Framework (mongo)

I'm trying to synchronise two functions I run in my app. First one checks the count of the docu… Read more Time Series And Aggregation Framework (mongo)

Query And Filter Key Names Instead Of Values In Mongodb

I want to find all key names from a collection that partially match a certain string. The closest I… Read more Query And Filter Key Names Instead Of Values In Mongodb

$filter Upto 3 Nested Level In Mongodb

I have a below collection [ { 'Array1': [ { 'Array2': [ … Read more $filter Upto 3 Nested Level In Mongodb

Collect Distinct Field Names At Nested Level With Specific Condition

I have problem statement, in which i need all the field names at child level of 'config.first.… Read more Collect Distinct Field Names At Nested Level With Specific Condition