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

Поделиться
HTML-код
  • Опубликовано: 4 фев 2023
  • 🟡 Get 1 to 1 coaching with me: topmate.io/engineeringdigest
    🟡 Donate: paypal.me/engineeringdigest
    🟡 Perks: www.youtube.com/@EngineeringD...
    🔴 Discord: / discord
    🔴 Twitch: / engineeringdigest
    🔴 Personal RUclips Channel: / @thevipulvats
    🔴 Instagram: / thevipulvats
    🔴 Twitter: / thevipulvats
    🔴 LinkedIn: / thevipulvats
    🔴 Website: engineeringdigest.net
    🔴 Video summary
    This video is a comprehensive guide to MongoDB aggregation, where you'll learn how to use various aggregation operators to process data stored in MongoDB collections. You'll see how to use these operators to perform various data processing tasks such as filtering, transforming, grouping and summarizing data. The video aims to help you make the most out of your MongoDB queries, allowing you to extract insights and aggregate data more effectively. By the end of the video, you'll be equipped with the skills to confidently perform complex data processing tasks in MongoDB.
    🔴 Timestamps
    Intro 0:00

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

  • @EngineeringDigest
    @EngineeringDigest  8 месяцев назад +12

    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 Год назад +22

    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🎉

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

    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.

  • @maullikakbari8200
    @maullikakbari8200 11 месяцев назад +1

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

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

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

  • @InzamamMalik
    @InzamamMalik 7 месяцев назад +1

    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.

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

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

  • @user-fh5xd9pt2n
    @user-fh5xd9pt2n 7 месяцев назад

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

  • @DilipBoidya-bb3be
    @DilipBoidya-bb3be 12 дней назад

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

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

    Thank you for explaining in a simple way.

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

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

  • @tanmaychavan743
    @tanmaychavan743 11 месяцев назад +1

    Just please never stop making such amazing videos ❤❤

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

    Thank your very much for the great explanation!!

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

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

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

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

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

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

  • @user-sh8pq7rm9p
    @user-sh8pq7rm9p 6 месяцев назад

    Subscribed, Your teaching style is something unique😊😊

  • @user-yk6lk6oe3d
    @user-yk6lk6oe3d Год назад

    Fantastic, I learned a lot today

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

    Awesome explaination with multiple examples, thanks

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

    vai, a big "THANK YOUUU" for u

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

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

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

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

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

    Love your tutorials.Pls cover entire mongo db.

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

    Thanks bhai jaan bahut hi achi video bnae hai apne

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

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

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

    Excellent content bhai highly appreciate your efforts.

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

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

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

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

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

    Mza agya bro, enjoy and completely understand. Thanks

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

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

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

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

  • @VivekYadav-up7uu
    @VivekYadav-up7uu 9 месяцев назад

    easy and effective way to explain.

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

    Best mongodb playlist ❤

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

    Awaiting next video !!

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

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

  • @stiphenrobert4469
    @stiphenrobert4469 7 месяцев назад

    Best mongodb tutorial on earth

  • @kishankumar-ze5pf
    @kishankumar-ze5pf 2 месяца назад

    most underrated channel

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

    You doing awesome job do it continue 👌🎉❤️

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

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

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

    bhaut hard XD : ) ❤‍🔥

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

    thanks man : )

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

    awesome explanation sir ❤

  • @user-cb5ef7vl5q
    @user-cb5ef7vl5q Год назад

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

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

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

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

    Deserve more views and subscribers ❤

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

    nice explanation

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

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

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

    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?

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

    Thank you sir ❤

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

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

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

      Please consider sharing feedback on LinkedIn. 🙏🏻

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

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

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

    Cool way of teaching.

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

    Sir you are great

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

    explain in simple way. no complex. Thanks

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

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

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

    Damn good lecture

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

    Best 🔥🔥🔥🔥🔥🔥🔥

  • @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

  • @OCEMTechZone
    @OCEMTechZone 22 дня назад

    Great🎉

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

    Amazing 👍👍

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

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

  • @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

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

    how to use indexing for aggregation pipeline?

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

    Bhai really apka voice bahut katarnak hai

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

    great explaination
    but need more videos on aggregation with join collections

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

    Super anna ❤

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

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

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

    nice video, transaction r bhi bha dijiye

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

    achcha samjhaya bhai apne

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

  • @SachinGupta-iy3sz
    @SachinGupta-iy3sz 10 месяцев назад

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

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

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

  • @AdarshSingh-mo1kc
    @AdarshSingh-mo1kc 11 месяцев назад

    his voice🔥🔥🔥🔥

  • @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

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

    kamal

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

    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  5 месяцев назад

      Watch indexing video in this playlist

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

      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

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

    Please make video on replication also.

  • @user-yq6pw1ou3x
    @user-yq6pw1ou3x 7 месяцев назад

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

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

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

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

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

  • @vinitph
    @vinitph 12 дней назад

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

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

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

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

    wow method

  • @rahulmk8698
    @rahulmk8698 12 дней назад +1

    Hello Sir,
    Can you share your docs with us?

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

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

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

    👋👋🙏🙏
    _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  10 месяцев назад

      05:19

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

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

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

    Best Video on internet❤‍🔥 Maza agya

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

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

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

    Sir Please database link

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

    Bro Engineering Digest very unique and attractive name

  • @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

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

    i think u r from delhi😎

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

    speak english

  • @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 10 месяцев назад

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

  • @SonuKumar-uq2rb
    @SonuKumar-uq2rb 5 месяцев назад

    kuch samaj ni aaya bekaar vedio.

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

    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]
    }
    ]

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

    db.scoreDta.aggregate([{$group:{_id:null,avgScore:{$avg:{$filter:{input:"$scores" , as:"score",cond:{$gt:["$age",30]}}}}}}]);