Fetch Data from Mongo DB and Show it to React using Node JS

Sdílet
Vložit
  • čas přidán 7. 06. 2023
  • #mernstack
    This video is about to Fetch/Get Data from MongoDB using React JS and Node JS | React, Node, Mongo Get Records and Display.
    How to fetch data from MongoDB.

Komentáře • 48

  • @ApeWithHelmet
    @ApeWithHelmet Před 8 měsíci +5

    Brother i swear on every god i love you mate... i swear my head was about to split open and i saw your video and it cleared the thing.... thanks mate

  • @manchanasaivamshi167
    @manchanasaivamshi167 Před rokem +3

    hello, we need to create the model for the existing collection to fetch the documents from it, is it mandatory or is there any other way we can fetch the data from existing collection using mongoose.

  • @karthikahdhanaraj6868
    @karthikahdhanaraj6868 Před 8 měsíci +1

    good job bro, thank you!

  • @user-uc5fu5dr9r
    @user-uc5fu5dr9r Před 8 měsíci +1

    grateful to have yousaf

  • @shubhamdas6519
    @shubhamdas6519 Před 11 měsíci +3

    thanks for the video...sir

  • @therevealmusic
    @therevealmusic Před rokem +1

    Nice work

  • @spade5713
    @spade5713 Před 10 měsíci +1

    how can i implement the crud functionalities, so far eading is done

  • @reynaldobocaling4200
    @reynaldobocaling4200 Před rokem +3

    hello idol I've been a supporter for a long time, I would like to request that you create a react data table with a check box in the first column and the table has a filter and sorting using express + react js + mysql

  • @edism235
    @edism235 Před 8 měsíci +1

    Thank you! :)

  • @base2advanced516
    @base2advanced516 Před rokem +1

    thank you brother.

  • @namanrajput7686
    @namanrajput7686 Před 5 měsíci

    how did u set the data of users and where in mongo db database.

  • @muhammadshahid444
    @muhammadshahid444 Před 8 měsíci

    thanks sir your video help me a lot

  • @fzkhan
    @fzkhan Před 4 měsíci

    Nice 👍👏

  • @Roozikhan565
    @Roozikhan565 Před rokem +2

    ❤❤

  • @Aitech885
    @Aitech885 Před 9 dny +1

    you arte a legend you don have a github my friend

  • @adarshvishwakarma1886
    @adarshvishwakarma1886 Před 9 měsíci

    Please make a tutorial on how to make react search bar ❤

  • @user-tr3fu5lx6w
    @user-tr3fu5lx6w Před 7 měsíci

    thank yu for twhe woner ful code :)

  • @CodeWithParesh
    @CodeWithParesh Před rokem +2

    osm😍

  • @xgodo-com
    @xgodo-com Před 4 měsíci

    How to add server-side filtering?

  • @geofreybazar17
    @geofreybazar17 Před 2 měsíci

    Sir how can I access the model if the schema was defined from other web app? But I have the same database. I just want to access my schema from different app to my new app. thanks

  • @santoshmore2953
    @santoshmore2953 Před rokem +1

    When its going to be completed?

  • @iRafi077
    @iRafi077 Před 3 měsíci

    Love you

  • @user-rd9bi6ge6b
    @user-rd9bi6ge6b Před 7 měsíci

    What is inside test folder

  • @aliuabdulmanaf353
    @aliuabdulmanaf353 Před 4 měsíci +1

    i followed the syntax to install the app but i did not get the same as yours, you have the packages on both sides of the client and server folder but my own did not appear like that meanwhile i followed your syntax

  • @gunjangoyal248
    @gunjangoyal248 Před 4 měsíci

    i m getting an empty array as a result, can anyone please help

  • @Kannadacoder360
    @Kannadacoder360 Před 10 měsíci +1

    How to create scheme

  • @sambotsector4614
    @sambotsector4614 Před 22 dny

    THANK YOU!!
    CAN YOU PLEASE SHARE A SOURCE CODE ?

  • @codingwithankit7619
    @codingwithankit7619 Před 10 měsíci +1

    What is the use of cors module?

    • @codewithyousaf
      @codewithyousaf  Před 10 měsíci

      Cross-origin resource sharing (CORS) allows AJAX requests to skip the Same-origin policy and access resources from remote hosts.

  • @user-nw1uv4jg1e
    @user-nw1uv4jg1e Před 8 měsíci +1

    After completing this code im not able to see the any output that loaclhost is blank
    Can u please help me out
    There is no error just im not able to see anything

    • @codewithyousaf
      @codewithyousaf  Před 8 měsíci

      first check console if there was an error
      second sometimes we forget return statement

  • @albusdumbledore986
    @albusdumbledore986 Před 9 měsíci +2

    ERROR
    users.map is not a function
    TypeError: users.map is not a function
    please help to solve this

    • @codewithyousaf
      @codewithyousaf  Před 9 měsíci

      users is empty there is no data in users or that is not an array

  • @saranavinash9261
    @saranavinash9261 Před 2 měsíci

    why did you run react on different port number and server on another port number, i used to run the server in a port number and define api's on that port number to route to static webpages using ejs, please explain clearly why did you do like that :)

    • @codewithyousaf
      @codewithyousaf  Před 2 měsíci +1

      You know this is a common practice in development setups and there are reasons for that like: Separation of Frontend and Backend, Easy in testing, Good for CORS ...

    • @saranavinash9261
      @saranavinash9261 Před 2 měsíci

      @@codewithyousaf Thanks for the reply, I wasn't sure whether you will respond or not, but you are great man, Thank you

  • @khai-vq5hn
    @khai-vq5hn Před 7 měsíci

    you available?

  • @pcadvanture
    @pcadvanture Před 4 měsíci +1

    1 issue

  • @user-rr3of1hy5w
    @user-rr3of1hy5w Před 6 měsíci +1

    Uncaught TypeError: users.map is not a function

  • @adarshvishwakarma1886
    @adarshvishwakarma1886 Před 9 měsíci +1

    Res.json is not function error helppppp

    • @codewithyousaf
      @codewithyousaf  Před 9 měsíci

      no data in res fetch the data correctly from server side.

    • @adarshvishwakarma1886
      @adarshvishwakarma1886 Před 9 měsíci +1

      @@codewithyousaf ty I got the error
      (res, req) 💀
      Now done it's (req, res)

    • @adarshvishwakarma1886
      @adarshvishwakarma1886 Před 9 měsíci +1

      @@codewithyousaf one more help I want my css only style on imported file but css applied on all my file what i do now

    • @codewithyousaf
      @codewithyousaf  Před 9 měsíci

      @@adarshvishwakarma1886 classes should be unique or use css modules

    • @menmozhib4022
      @menmozhib4022 Před 3 měsíci

      Your video are very useful for beginners.you explanation are so clear.
      Can you teach student Task submission portal in mern stack project