Node JS in Hindi #39 Mongoose with node

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 66

  • @ALOKKUMAR-qj2bw
    @ALOKKUMAR-qj2bw 2 роки тому +5

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

  • @SameerAbbasMughal
    @SameerAbbasMughal 7 місяців тому

    best course for beginners this playlist is real GEM of the UA-cam

  • @karishmasharma5571
    @karishmasharma5571 Рік тому

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

  • @AnujSharma-ro4kc
    @AnujSharma-ro4kc Рік тому +1

    respect for you sir
    Your teaching skills are just amazing

  • @quick9ledge296
    @quick9ledge296 9 місяців тому

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

  • @divyam-hx3ie
    @divyam-hx3ie Рік тому

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

  • @rashminavora6268
    @rashminavora6268 2 роки тому

    Yr explanation is very useful and very much good 💐👍

  • @hemalatavishnumahajan3706
    @hemalatavishnumahajan3706 3 місяці тому

    Thank you... Very helpful

  • @atovan3236
    @atovan3236 3 роки тому

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

  • @jbvpshreyas1758
    @jbvpshreyas1758 3 роки тому

    Please complete the series as soon as possible

  • @nidhi.dubey777
    @nidhi.dubey777 3 роки тому +2

    Yes Sir, Please make video on crud operation also

  • @dProfessor_
    @dProfessor_ Рік тому

    very well taught

  • @ipreet6850
    @ipreet6850 3 роки тому

    thanx u made it so easy

  • @AvinashPatil-e3h
    @AvinashPatil-e3h Рік тому

    awesome video sir!!

  • @UshaPB-mq8hu
    @UshaPB-mq8hu 15 днів тому

    Thank you sir

  • @MuhammadUsman-ok5vs
    @MuhammadUsman-ok5vs Рік тому +1

    well explained

  • @surakshitkapoormathsc1910
    @surakshitkapoormathsc1910 2 роки тому

    Good explanation

  • @vivekbharadwaj2309
    @vivekbharadwaj2309 Рік тому

    Thank u very much Sir

  • @YourStatus24
    @YourStatus24 7 місяців тому

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

  • @sohamajgaonkar3119
    @sohamajgaonkar3119 Рік тому

    Awesome

  • @subamsarkar3762
    @subamsarkar3762 Рік тому +1

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

  • @Rahulkashyap-rs3tb
    @Rahulkashyap-rs3tb 2 роки тому

    bhai tu best hai

  • @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 Рік тому

      @@rukhsarfatma1194 Thank you it Helped 😍

  • @cyphermediaschool
    @cyphermediaschool 2 роки тому

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

  • @SOURAVDAS-v8v
    @SOURAVDAS-v8v 11 місяців тому

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

  • @lovelymusic3549
    @lovelymusic3549 3 роки тому

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

  • @jeetime12
    @jeetime12 3 роки тому +1

    Sir, please make a mini mean project

  • @anonymous-ft6gq
    @anonymous-ft6gq 2 місяці тому

    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

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

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

  • @AmazingFacts-ti6mw
    @AmazingFacts-ti6mw 3 роки тому

    sir yout git hub link is not founded

  • @slatechworld999
    @slatechworld999 5 місяців тому

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

  • @vijenderkumar3034
    @vijenderkumar3034 3 роки тому

    Pls make a mini project

  • @RanveerRajSinghKhati
    @RanveerRajSinghKhati Рік тому

    👌👌👌👌👌👌

  • @shashiross6539
    @shashiross6539 3 роки тому

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

  • @vijenderkumar3034
    @vijenderkumar3034 3 роки тому

    Thnx u sir

  • @lovelymusic3549
    @lovelymusic3549 3 роки тому +1

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

  • @BhagyashriTamrakar
    @BhagyashriTamrakar 7 місяців тому

    lecture 39 completed

  • @PratikBokey
    @PratikBokey Рік тому

    Why collection is getting updated with __v: 0?

  • @vivekmalviya3124
    @vivekmalviya3124 3 роки тому

    please make mern project sir

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

  • @abhijeetanand6862
    @abhijeetanand6862 Рік тому

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

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

  • @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' })

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