The Ultimate MongoDB Aggregation Guide: Make Your Queries Soar in One Video

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 166

  • @EngineeringDigest
    @EngineeringDigest  Год назад +16

    Use this as sample data, it is not the same. But will do the work
    db.teachers.insertMany([
    { "_id": 1, "name": "John Doe", "age": 35, "gender": "male" },
    { "_id": 2, "name": "Jane Smith", "age": 40, "gender": "female" },
    { "_id": 3, "name": "Michael Johnson", "age": 45, "gender": "male" },
    { "_id": 4, "name": "Emily Williams", "age": 30, "gender": "female" },
    { "_id": 5, "name": "Robert Brown", "age": 38, "gender": "male" },
    { "_id": 6, "name": "Emma Jones", "age": 33, "gender": "female" },
    { "_id": 7, "name": "William Davis", "age": 37, "gender": "male" },
    { "_id": 8, "name": "Olivia Miller", "age": 41, "gender": "female" },
    { "_id": 9, "name": "David Wilson", "age": 36, "gender": "male" },
    { "_id": 10, "name": "Sophia Moore", "age": 32, "gender": "female" },
    { "_id": 11, "name": "Richard Taylor", "age": 39, "gender": "male" },
    { "_id": 12, "name": "Isabella Anderson", "age": 43, "gender": "female" },
    { "_id": 13, "name": "Joseph Thomas", "age": 34, "gender": "male" },
    { "_id": 14, "name": "Mia Jackson", "age": 42, "gender": "female" },
    { "_id": 15, "name": "Charles White", "age": 36, "gender": "male" },
    { "_id": 16, "name": "Abigail Harris", "age": 31, "gender": "female" },
    { "_id": 17, "name": "Daniel Martin", "age": 44, "gender": "male" },
    { "_id": 18, "name": "Evelyn Thompson", "age": 38, "gender": "female" },
    { "_id": 19, "name": "Matthew Garcia", "age": 37, "gender": "male" },
    { "_id": 20, "name": "Sofia Martinez", "age": 35, "gender": "female" },
    { "_id": 21, "name": "Andrew Robinson", "age": 40, "gender": "male" },
    { "_id": 22, "name": "Grace Clark", "age": 33, "gender": "female" },
    { "_id": 23, "name": "Joshua Rodriguez", "age": 39, "gender": "male" },
    { "_id": 24, "name": "Avery Lewis", "age": 42, "gender": "female" },
    { "_id": 25, "name": "Christopher Lee", "age": 37, "gender": "male" },
    { "_id": 26, "name": "Chloe Walker", "age": 31, "gender": "female" },
    { "_id": 27, "name": "Kevin Hall", "age": 44, "gender": "male" },
    { "_id": 28, "name": "Zoey Allen", "age": 38, "gender": "female" },
    { "_id": 29, "name": "Brian Young", "age": 36, "gender": "male" },
    { "_id": 30, "name": "Harper King", "age": 34, "gender": "female" }
    ])

  • @manojmohapatra986
    @manojmohapatra986 Год назад +35

    Working as a developer from last 4 yrs but i didnt know some operators even exists.. thank you for your support . Watching your videos is like bliss af🎉

  • @maullikakbari8200
    @maullikakbari8200 Год назад +5

    one of the best aggregation tutorial available on youtube till now thank you sir.

  • @poojagarva
    @poojagarva Год назад +22

    Your MongoDB playlist is absolutely fantastic! Your tutorials and explanations make it so easy to understand and follow. I've been searching for a reliable resource to learn MongoDB, and your playlist makes it easier for me to apply what I've learned to my own projects.

  • @DilipBoidya-bb3be
    @DilipBoidya-bb3be 5 месяцев назад +4

    I like your accent, your explanations and so i subscribed you. Keep posting more vids.

  • @InzamamMalik
    @InzamamMalik Год назад +2

    Love you bro, being technical matters but you have got god gifted teaching skill along with technical competency. always spare some of your time for teaching. found your video very helpful and will recommend to others for sure. no click bate no gimmicks pure knowledge with nicely organised flow.

  • @memekannada2901
    @memekannada2901 Год назад +4

    benifitted so much from this playlist..appreciate you sir!!

  • @anshulsharma9424
    @anshulsharma9424 6 месяцев назад +1

    Sir all of you content is a gold mine for developers.

  • @cruzcreez65
    @cruzcreez65 6 месяцев назад +2

    Unique way of teaching.. no boringness ❤❤🎉🎉

  • @parmaryash4406
    @parmaryash4406 Год назад +1

    Finally found great video for mongodb aggregation queries, really thank you so much

  • @JonayedAhamad-m5n
    @JonayedAhamad-m5n 11 месяцев назад +1

    Subscribed, Your teaching style is something unique😊😊

  • @ShekharTayde-j3k
    @ShekharTayde-j3k Год назад +1

    Bachpan me hum padhte the ..... 😆..Amazing videos bhai..helped alot.

    • @EngineeringDigest
      @EngineeringDigest  Год назад +1

      Thanks 😀
      *Instagram:* instagram.com/thevipulvats
      *Discord:* discord.gg/7e6WdBJ9dT

  • @DevilDoer9224
    @DevilDoer9224 4 месяца назад +3

    Great video no doubt but at 31:50 I am getting output as [ { _id: null, avgS: null } ] and my query is db.students.aggregate([{$group:{_id:null, avgS:{ $avg:{ $filter:{ input:"$scores",as:"score",cond:{ $gt: ["$score",12]}}}}}}]). What could be wrong? And this is what Chatgpt says "The problem with your query is that the $filter operator is being used in a way that doesn't make sense for calculating the average of the scores for students older than 12. Specifically:
    Incorrect Use of $filter: The $filter operator is intended to filter elements within an array, but you are using it to compare age, which is not an array element.
    Invalid Condition: The condition {$gt:["$age",12]} inside $filter is intended to filter array elements based on a property of the array elements themselves, but age is a top-level document field, not a property within the scores array."

  • @KhushaliChauhan-o1b
    @KhushaliChauhan-o1b Год назад

    wow...its very first time ,I am watching your videos but really....its awesome your way to convey the concept is literally different from other ..

  • @kishankumar-ze5pf
    @kishankumar-ze5pf 7 месяцев назад +1

    most underrated channel

  • @SawanKumar-tr9xz
    @SawanKumar-tr9xz Год назад +2

    Best mongodb playlist ❤

  • @tanmaychavan743
    @tanmaychavan743 Год назад +1

    Just please never stop making such amazing videos ❤❤

  • @nobitaa32
    @nobitaa32 Год назад

    Op sir first time aaya hu kya hi technique he aapki padhaneki

  • @taukirkhan3417
    @taukirkhan3417 Год назад

    Mza agya bro, enjoy and completely understand. Thanks

    • @EngineeringDigest
      @EngineeringDigest  Год назад

      Thank you brother, it will be a huge help if you can share this course on LinkedIn.

  • @noedition1968
    @noedition1968 Год назад

    Such a beautiful information for mongodb pipeline. Thanks a lot for this valuable video ❤

  • @KaustubhKolhe
    @KaustubhKolhe Месяц назад

    very well explained, thank you sir

  • @ashwinchaudhary5730
    @ashwinchaudhary5730 6 месяцев назад

    Awesome explaination with multiple examples, thanks

  • @Rajugupta-gp2eg
    @Rajugupta-gp2eg Год назад +2

    Awaiting next video !!

    • @EngineeringDigest
      @EngineeringDigest  Год назад

      Thanks bro, Please support us by sharing the channel with your colleagues 🤝

  • @nemotivity
    @nemotivity Год назад +4

    Loved the video. Waiting for the next one. Keep making such awesome tutorials. ♥

  • @fatimaiqra2169
    @fatimaiqra2169 3 месяца назад

    thanks a lot for such a deeper explanation!

  • @stiphenrobert4469
    @stiphenrobert4469 Год назад

    Best mongodb tutorial on earth

  • @AnilKumar-fw8bw
    @AnilKumar-fw8bw Год назад

    Thank you for explaining in a simple way.

  • @pritimodanwal06
    @pritimodanwal06 Год назад

    very nice explain bro, before it i have little bit confusion regarding pipeline now clear thank you bro

  • @vaibhavnikalje2655
    @vaibhavnikalje2655 29 дней назад

    Great teaching 🤩

  • @ummeed4365
    @ummeed4365 Год назад

    Excellent content bhai highly appreciate your efforts.

    • @EngineeringDigest
      @EngineeringDigest  Год назад

      Thanks! 😊 You can join our discord or Insta @thevipulvats.

  • @abhijeetkumarsingh2504
    @abhijeetkumarsingh2504 Год назад

    You Got A Subscriber,
    loved the way you explain 😂 🔥

  • @naimhasan5346
    @naimhasan5346 Год назад

    Bhai you are the best! Your teaching style is so unique and interesting. I love it ❤

  • @sohammehta6614
    @sohammehta6614 Год назад

    Thank your very much for the great explanation!!

  • @mahirjain5833
    @mahirjain5833 Год назад

    Love your tutorials.Pls cover entire mongo db.

  • @MohammedHasmi577
    @MohammedHasmi577 4 месяца назад

    Bhai tum reels me dikhte ho vohi hona? Love your videos ❤🎉

  • @anandatole6529
    @anandatole6529 Год назад

    explain in simple way. no complex. Thanks

  • @MohammedHasmi577
    @MohammedHasmi577 Месяц назад

    Sir i knoe mongodb but still i have learnt a lot of things from this playlist

  • @vivekkumaryadav9862
    @vivekkumaryadav9862 11 месяцев назад

    thanks bhaiya ji...ek video or aggregation completed ...:))

    • @EngineeringDigest
      @EngineeringDigest  11 месяцев назад

      Please consider sharing feedback on LinkedIn. 🙏🏻

  • @sadotore
    @sadotore Год назад

    vai, a big "THANK YOUUU" for u

  • @explorewithsatish1208
    @explorewithsatish1208 Год назад

    You doing awesome job do it continue 👌🎉❤️

  • @farukkhan6324
    @farukkhan6324 Год назад

    hey man awesome video loved they way you explain waiting for more videos. keep it up

  • @dhriteshkumar1786
    @dhriteshkumar1786 Год назад +1

    awesome explanation sir ❤

  • @aafibaloch654
    @aafibaloch654 Год назад

    Deserve more views and subscribers ❤

  • @zeeshankalyar7693
    @zeeshankalyar7693 Год назад

    Thanks bhai jaan bahut hi achi video bnae hai apne

  • @VivekYadav-up7uu
    @VivekYadav-up7uu Год назад

    easy and effective way to explain.

  • @aditideshmukh4752
    @aditideshmukh4752 Месяц назад

    helped a lot! thanks

  • @IftekharAhmed-f3r
    @IftekharAhmed-f3r Год назад

    Fantastic, I learned a lot today

  • @foodistan9311
    @foodistan9311 Год назад +2

    Please do a video on $lookup as well.
    BTW a great explanation.

    • @EngineeringDigest
      @EngineeringDigest  Год назад +1

      Will do soon, Please support us by joining on Instagram or Discord 🙂

    • @foodistan9311
      @foodistan9311 Год назад +1

      @@EngineeringDigest Please. waiting for so long

  • @SparkYourMindConnections
    @SparkYourMindConnections Год назад

    Best Video on internet❤‍🔥 Maza agya

  • @vishalgarna12
    @vishalgarna12 Месяц назад

    Sirja bhi aa gaya hu❤❤

  • @shashanksingh4708
    @shashanksingh4708 6 месяцев назад

    can you do a video on these complex queries implemented using spring data mongoDB ?

  • @cyrusthapa794
    @cyrusthapa794 Год назад

    bhaut hard XD : ) ❤‍🔥

  • @prathameshhiremath1379
    @prathameshhiremath1379 Год назад

    Bhai really apka voice bahut katarnak hai

  • @shubhamgupta-bl1tr
    @shubhamgupta-bl1tr Год назад +1

    nice video, transaction r bhi bha dijiye

  • @shamimsarker839
    @shamimsarker839 Год назад

    Best 🔥🔥🔥🔥🔥🔥🔥

  • @AdarshSingh-mo1kc
    @AdarshSingh-mo1kc Год назад

    his voice🔥🔥🔥🔥

  • @abhishekbisht3264
    @abhishekbisht3264 10 месяцев назад

    Bhaiya meine mongo db abhi start kara hai kuch tips dedo jisse mein issey achhe se seekh jaaun

  • @mikeplai4189
    @mikeplai4189 Год назад

    great explaination
    but need more videos on aggregation with join collections

  • @mohdshahnawaz5047
    @mohdshahnawaz5047 3 месяца назад

    very good sir.

  • @rajd2990
    @rajd2990 Год назад

    Amazing 👍👍

    • @EngineeringDigest
      @EngineeringDigest  Год назад

      Thanks! 😊 Join my Insta fam if u haven’t already: @thevipulvats

  • @harsh__dev
    @harsh__dev Год назад +2

    Sir please provide the pdf/cheat sheet as well. By the way love your lectures

  • @mithilesh8349
    @mithilesh8349 Год назад +1

    Problem statement :
    In a Json file or Mongo there is an Object contains Company name and Gender,
    You Have to find the count of female and male in a seperate column for each company.
    ex:
    Company Male female
    A 22 10
    B 20 18
    C 10 30

    • @mithilesh8349
      @mithilesh8349 Год назад

      Help me to write the aggregation for better understanding

    • @mikeplai4189
      @mikeplai4189 Год назад +2

      const employees = await Employee.aggregate([
      {
      $group: {
      _id: { companyName: "$companyName", gender: "$gender" },
      count: { $sum: 1 },
      },
      },
      {
      $project: {
      _id: 0,
      companyName: "$_id.companyName",
      gender: "$_id.gender",
      count: 1,
      },
      },
      ]);

  • @vampirekabir
    @vampirekabir Год назад

    cant get it why 44 psychos disliked this such legendary video,absolutely fabulous, amazing

  • @rajverma5051
    @rajverma5051 Год назад

    Thank you sir ❤

  • @shivamkatiyar2899
    @shivamkatiyar2899 Год назад

    Cool way of teaching.

  • @manojmohapatra986
    @manojmohapatra986 Год назад

    Dont know on the area you expertise on. But if you create some playlist on devops (as not much good resourse available) , gcp , aws etc. trust me uh ll be unbeatable. Mark my words

  • @lifeusa2168
    @lifeusa2168 8 месяцев назад

    Your videos are really awesome. I have one question
    How can we use two ids while grouping? Is it possible if yes then how. Can you please explain?

  • @03devrajtak7
    @03devrajtak7 Год назад

    how to use indexing for aggregation pipeline?

  • @jyotshnamanjari2372
    @jyotshnamanjari2372 Год назад

    You are wonderful.
    Can you please explain $reduce?
    Also can you please include datetime in your examples.

  • @watchprakhar
    @watchprakhar Год назад

    achcha samjhaya bhai apne

  • @ShubhiK-ro8cl
    @ShubhiK-ro8cl 7 месяцев назад

    Last query with filter is not working. Please add correct query here.

  • @SachinGupta-iy3sz
    @SachinGupta-iy3sz Год назад

    Hey,
    Is there any platform available where we can practice mongodb queries.

  • @vaishalimandora8956
    @vaishalimandora8956 Год назад

    Sir is your playlist is sufficient to learn mongodb ...as a node js developer

    • @EngineeringDigest
      @EngineeringDigest  Год назад +1

      It will help you to query the database directly and basic understanding of mongodb. Then you have to learn mongoose which makes node js to connect and query the database.

  • @abuzubaer3083
    @abuzubaer3083 Год назад

    nice explanation

  • @Mehuldeveloper
    @Mehuldeveloper 10 месяцев назад

    Bro, can you help me? I'm working with a MongoDB database with 5 million records. When I fetch the total count based on sum or query, the query execution is becoming very slow.

    • @EngineeringDigest
      @EngineeringDigest  10 месяцев назад

      Watch indexing video in this playlist

    • @Mehuldeveloper
      @Mehuldeveloper 10 месяцев назад

      i've watched your video on indexing and have applied the techniques but due to large data collection giving same result is there any other techniques ? @@EngineeringDigest

  • @rahulmk8698
    @rahulmk8698 5 месяцев назад +1

    Hello Sir,
    Can you share your docs with us?

  • @raiyanabdurrehman1411
    @raiyanabdurrehman1411 Год назад

    Awesome Video..BTW any idea why the last problem's solution showing avgScores as null??

  • @see_the_nature-stn
    @see_the_nature-stn Год назад

    Sir you are great

  • @JaiSreeRam466
    @JaiSreeRam466 Год назад

    Super anna ❤

    • @EngineeringDigest
      @EngineeringDigest  Год назад

      Thanks! 😊 Join my Insta fam if u haven’t already: @thevipulvats

  • @shashankjain4024
    @shashankjain4024 3 месяца назад

    Informational video. Thanks.
    However should work on your tone and extra modulation. It breaks the learning rhythm for the audience.

  • @preetilangayan6326
    @preetilangayan6326 Год назад

    Please make video on replication also.

  • @arnavkaul7827
    @arnavkaul7827 Год назад

    Damn good lecture

  • @vinitph
    @vinitph 5 месяцев назад

    sir can you share your notes with us i would be very grateful

  • @UsamaArif-c4l
    @UsamaArif-c4l Год назад

    if two student have same age and same hobbies then what will be output?

  • @OCEMTechZone
    @OCEMTechZone 6 месяцев назад

    Great🎉

  • @hitbymillion
    @hitbymillion Год назад

    thanks man : )

  • @varunjaiswar5062
    @varunjaiswar5062 Год назад

    sir data dal te dal te , fatt gai mere , please provide data in description.

  • @random2059
    @random2059 Год назад

    👋👋🙏🙏
    _id kaise age ho sakta hai id to id hai , ( _id:"$age") age acting like _id keya ho rah hai inha pe thora samjhaye , please clear this confusion ???👋👋🙏🙏 thora dhundne par pata chala isko accumulator object bolte hai ....
    thora ispe v batye .. please reply

    • @EngineeringDigest
      @EngineeringDigest  Год назад

      05:19

    • @random2059
      @random2059 Год назад

      @@EngineeringDigest samjha to ye _id uo wala _id nahi nahi hai ye ac new _id banrahe ho age ke basis pea ? 🙏🙏🙏🙏 bata please do maine full video dekha hai note v bana raha hu .... mujhe 5:19 thora samaj nahi aya sir

  • @harshmehta1141
    @harshmehta1141 Год назад

    Bro Engineering Digest very unique and attractive name

  • @khawajamuhammadmushood5455
    @khawajamuhammadmushood5455 Год назад

    can someone explain me the use of dollar sign in aggregate quries

    • @EngineeringDigest
      @EngineeringDigest  Год назад

      it means you are going to use reserved keyword ( operator )

  • @kunal_Jangra
    @kunal_Jangra Год назад

    Plz provide this data you are using we can practice by using it

  • @farhanakhtar5229
    @farhanakhtar5229 4 месяца назад +1

    bhai ne news anchor ki job chod kar coder bana he

  • @vampirekabir
    @vampirekabir Год назад

    bro video on $facet and $bucket pls

    • @EngineeringDigest
      @EngineeringDigest  Год назад +1

      just recorded, will upload next week

    • @vampirekabir
      @vampirekabir Год назад

      @@EngineeringDigest thanks, i always look for ur explanation teach in such clear and fun way

  • @mithleshkumar-ds9ex
    @mithleshkumar-ds9ex Год назад

    Sir Please database link

  • @swapnilw.
    @swapnilw. Год назад

    i think u r from delhi😎

  • @mikeplai4189
    @mikeplai4189 Год назад

    kamal

  • @datastructuresandalgorithm9370
    @datastructuresandalgorithm9370 9 месяцев назад

    For last filter
    [
    {
    "name": "Vinay",
    "age": 34,
    "scores": [22, 33, 4, 44, 55]
    },
    {
    "name": "Alice",
    "age": 28,
    "scores": [10, 20, 30, 40, 50]
    },
    {
    "name": "Bob",
    "age": 42,
    "scores": [15, 25, 35, 45, 55]
    },
    {
    "name": "Emma",
    "age": 31,
    "scores": [18, 28, 38, 48, 58]
    },
    {
    "name": "Chris",
    "age": 37,
    "scores": [12, 22, 32, 42, 52]
    },
    {
    "name": "Sophia",
    "age": 29,
    "scores": [25, 35, 45, 55, 65]
    },
    {
    "name": "David",
    "age": 36,
    "scores": [30, 40, 50, 60, 70]
    },
    {
    "name": "Linda",
    "age": 45,
    "scores": [8, 18, 28, 38, 48]
    },
    {
    "name": "Michael",
    "age": 27,
    "scores": [16, 26, 36, 46, 56]
    },
    {
    "name": "Emily",
    "age": 33,
    "scores": [5, 15, 25, 35, 45]
    }
    ]

  • @ihtshamhaider6849
    @ihtshamhaider6849 Год назад

    wow method

  • @sksayrilamed4087
    @sksayrilamed4087 Год назад

    aap ka smjhana acha hay but behavior thora accha kariya bate thora dhang say koriya bohot karush lagata hay ..lakin apnay best aggregation concept samjaya hay .-__-

  • @code-with-me-2002
    @code-with-me-2002 Год назад

    bro college teacher ki taraha , line by line padhke hindi translate mat karo