Node JS in Hindi #39 Mongoose with node

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

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

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

    best course for beginners this playlist is real GEM of the RUclips

  • @ALOKKUMAR-qj2bw
    @ALOKKUMAR-qj2bw 2 года назад +5

    I like the way you explain any topics for beginners even🤘

  • @divyam-hx3ie
    @divyam-hx3ie Год назад

    Literally amazing playlist this is !!!!!!!!!!!!!!!!!!🤩🤩🤩🤩🤩🤩🤩🤩

  • @AnujSharma-ro4kc
    @AnujSharma-ro4kc Год назад +1

    respect for you sir
    Your teaching skills are just amazing

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

    Amazing palylist for learning node. explain in detail . Thank you so much.

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

    thank you heartly sir amazing content for poor student ,you can help me a lot❣❣

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

    Thank you... Very helpful

  • @rashminavora6268
    @rashminavora6268 2 года назад

    Yr explanation is very useful and very much good 💐👍

  • @atovan3236
    @atovan3236 3 года назад

    This course video is useful........

  • @nidhi.dubey777
    @nidhi.dubey777 3 года назад +2

    Yes Sir, Please make video on crud operation also

  • @ramankr0022
    @ramankr0022 10 дней назад

    very helpful

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

    very well taught

  • @ipreet6850
    @ipreet6850 3 года назад

    thanx u made it so easy

  • @AvinashPatil-e3h
    @AvinashPatil-e3h Год назад

    awesome video sir!!

  • @MuhammadUsman-ok5vs
    @MuhammadUsman-ok5vs Год назад +1

    well explained

  • @jbvpshreyas1758
    @jbvpshreyas1758 3 года назад

    Please complete the series as soon as possible

  • @UshaPB-mq8hu
    @UshaPB-mq8hu 26 дней назад

    Thank you sir

  • @surakshitkapoormathsc1910
    @surakshitkapoormathsc1910 2 года назад

    Good explanation

  • @anandmaurya6384
    @anandmaurya6384 3 дня назад

    thanku sir

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

    Awesome

  • @Rahulkashyap-rs3tb
    @Rahulkashyap-rs3tb 2 года назад

    bhai tu best hai

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

    if data not inserted in database please create a new database & collections and run again I think it will properly...

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

    Thank u very much Sir

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

    👌👌👌👌👌👌

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

    Hello Anil Sir, Can't we do this with schema validator?

  • @Pramodsharma-uz8ix
    @Pramodsharma-uz8ix 2 года назад +3

    Ok, So initially my collection name was "product" so whenever I was inserting only name, it automatically creates a new collection but I changed it as "products" and now its fine. what was wroing if my collection name was product ?

    • @rukhsarfatma1194
      @rukhsarfatma1194 2 года назад +1

      Getting same issue

    • @rukhsarfatma1194
      @rukhsarfatma1194 2 года назад +8

      What mongoose do is that, When no collection argument is passed, Mongoose produces a collection name by pluralizing the model name. If you don't like this behavior, either pass a collection name or set your schemas collection name option.
      Example:
      var schema = new Schema({ name: String }, { collection: 'actor' });
      or
      schema.set('collection', 'actor');
      or
      var collectionName = 'actor'
      var M = mongoose.model('Actor', schema, collectionName);

    • @chaitrashringa3889
      @chaitrashringa3889 2 года назад

      @@rukhsarfatma1194 thank you, this helped

    • @hritikmanbattulwar
      @hritikmanbattulwar 2 года назад

      @@rukhsarfatma1194 Thank you it Helped 😍

  • @anonymous-ft6gq
    @anonymous-ft6gq 3 месяца назад

    When i add data it made a new collection for product in same e com data base and in one product all previous data was saved and in another product only the entered data in this video was saved

  • @SOURAVDAS-v8v
    @SOURAVDAS-v8v 11 месяцев назад

    Can I use both Mongoose and MongoDB package at same time??

  • @cyphermediaschool
    @cyphermediaschool 2 года назад

    we can check and insert vaild data in MongoDB that way using mongoose ?

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

    running scripts is disabled on this system nodemon
    sir ye error aa raha jb nodemon run krte hai to koi solution plz

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

    Sir my table name is Product and in product model I have enter Product only then why is it making new table as products

  • @lovelymusic3549
    @lovelymusic3549 3 года назад

    Sir what is the difference between your old node JS lecture series with this series?

  • @AmazingFacts-ti6mw
    @AmazingFacts-ti6mw 3 года назад

    sir yout git hub link is not founded

  • @vijenderkumar3034
    @vijenderkumar3034 3 года назад

    Thnx u sir

  • @jeetime12
    @jeetime12 3 года назад +1

    Sir, please make a mini mean project

  • @anilraj9877
    @anilraj9877 3 года назад +1

    why data is saving without the POST method?

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

      because here we are initializing a new document in this code down below and pushing it to the db
      const data = new ProductsModel({name: "m8", price: 4000});
      You can achieve the same with post method but there are just multiple ways to do the same thing

  • @shashiross6539
    @shashiross6539 3 года назад

    unable to get this code. Your git page not found.

  • @lovelymusic3549
    @lovelymusic3549 3 года назад

    Sir please make a video on how to become a professional software developer without any computer science degree please sir

    • @sunilshekhawat5422
      @sunilshekhawat5422 2 года назад

      You tube par dekhle jake aur bahot logo ne is topic par video banaya hua he . Search to kar ek bar.

  • @lovelymusic3549
    @lovelymusic3549 3 года назад +1

    Sir you will cover express JS and Mongo db in this node JS course?

  • @vijenderkumar3034
    @vijenderkumar3034 3 года назад

    Pls make a mini project

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

    Why collection is getting updated with __v: 0?

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

    its fact for developer = mongoose take plural names for collections .....to take singular names......
    var memberSchema = new Schema({..}, { collection: 'member' })................................no thanks ............................hehehehe

    • @AngusMayer-i6w
      @AngusMayer-i6w 10 месяцев назад

      kehna kya chahta hai bhai

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

      @@AngusMayer-i6w
      when we create collection name in mongoDB...
      by default it takes plural names...eg. ( users, blogs )
      but when we want to take singular names only we have write some extra code
      new mongoose.schema({
      #code...
      }),{ collection : "user" };
      here if we focus on collection..it is singular.......
      baas yhi......any issue....contact me again..no problem......
      no need of thanks....its my pleasure help you dear

  • @MuhammadSufyan-bz9mb
    @MuhammadSufyan-bz9mb Год назад

    my data isnt storing in database. its popping on console . what cold be the possible reason. anyone?

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

      you have to create new file or change the file name

  • @Pramodsharma-uz8ix
    @Pramodsharma-uz8ix 2 года назад +1

    well, whenever I'm inserting only name, it automatically creates a new collection with single "name" record. It's not inserting into same products collection, why @anil Please respond.

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

      That's exactly what is happening with me as well.

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

      see @rukhsarfatma1194 reply, it resolved the issue. Use { collection: 'Products' } inside const ProductSchema= new mongoose.Schema({
      name: String,
      email: String
      },{ collection: 'Products' })

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

    lecture 39 completed

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

    i am facing error can anyone provide code if the following lecture please

  • @vivekmalviya3124
    @vivekmalviya3124 3 года назад

    please make mern project sir

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

    showing 404 on your github link

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

    if any one got this error ---->> MongooseServerSelectionError: connect ECONNREFUSED ::1:27017
    try this for connect mongo :- mongodb://0.0.0.0

  • @divanshusharma5942
    @divanshusharma5942 2 года назад +4

    sir my data is poping in console but its not saving in Mongodb . why ??