Supabase Tutorial #3 - Fetching Data

Поділитися
Вставка
  • Опубліковано 31 сер 2022
  • In this Supabase tutorial you'll learn how to fetch data from the database using the Supabase client library.
    🐱‍💻 Access the course files on GitHub:
    github.com/iamshaunjp/Supabas...
    🐱‍💻 React Complete Tutorial (on Net Ninja Pro):
    netninja.dev/p/build-websites...
    🔥🔥🔥 Other resources:
    Supabase docs - supabase.com/docs
    ⭐⭐ Get access to all free & PREMIUM courses on Net Ninja Pro:
    net-ninja-pro.teachable.com/p...

КОМЕНТАРІ • 55

  • @sanan4li
    @sanan4li 5 місяців тому +18

    All those who are facing empty array value. Please disable RLS(Row Level Security) or add a policy for RSL. I spent 4 hours on that

    • @favour_ukonu8615
      @favour_ukonu8615 4 місяці тому

      Thank you very much! I had the same error, your comment helped.

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

      Jesus Christ, you saved me. Was starting to get annoyed by this, thanks!

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

      Thank you bro, I just recently got this issue and im so confused what happened, i will check it later coz im so tired😂

    • @chriszecheru2323
      @chriszecheru2323 Місяць тому +1

      Real one

    • @t.gmultiplex2838
      @t.gmultiplex2838 Місяць тому +1

      😂😂 I just got this issue and solved it after 5 hours and now seeing your comment still thanks

  • @Omerko
    @Omerko Рік тому +3

    Just started following this series.. I do prefer Firebase, but I gotta say.. Supabase UI and its own client looks super easy to learn and use... Continue with it please, I am keen to complete this series.

  • @rebelmachine88
    @rebelmachine88 Рік тому +7

    Subabase definitely gives a great first impression and has some really easy to use starter materials. Very impressive! Looking forward to this series 😁

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

      I thought the same about Firebase. Seems amazing and I am so down for this series too :)

  • @benfrese3573
    @benfrese3573 Рік тому +15

    Hey mate, you run one of the best programming channels on YT and I am very thankful for your content.

    • @NetNinja
      @NetNinja  Рік тому +2

      Thanks Ben, that means a lot :)

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

      why my data are not showing while there is no error.

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

    One question, how could you fetch data from database when you had no RLS enabled and used anon key witch only works with RLS enabled?

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

    I am reaching to the console.log(data) thing but it is not showing any data just bunch of other things and even when i tried to console.log(data.title) as i have created on superbase it is saying undefined

  • @mountaingoatgaminggg9395
    @mountaingoatgaminggg9395 8 місяців тому

    Been following this tutorial and has been a god send for the project Im working on, an issue I am running into with my forms that I am creating is that the id row isnt auto incrementing, keeps trying to duplicate the ID. I can hard code it in the dashboard and run it that way and it'll work, not sure what Im doing wrong

  • @johnpaul5836
    @johnpaul5836 10 місяців тому

    Does supabase provide any tools to allow you to create the db schema in the file system?

  • @user-ek6il2uc6s
    @user-ek6il2uc6s Рік тому

    i used this to for a sveltekit project of mine and modified the code for sveltekit but it is'nt working? Help!

  • @ShaunyTravels.
    @ShaunyTravels. 3 місяці тому

    If i want to uplaod a diet plan and retrieve and display it in my flutter app do i need to also create a table ? Please need help struggling here lol!!!

  • @htmlfivedev
    @htmlfivedev Рік тому +6

    Love the course ... but sad cuz it doesn't cover auth ...

  • @icup2260
    @icup2260 22 дні тому

    on line 14 of Home.js put .from("Smoo thies") instead of .from('recipes') idk why he put that on the github.

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

    @The Net Ninja please update your react tutorial. sir, some things have changed. example -> react routing.

  • @sh1ro9666
    @sh1ro9666 Рік тому +3

    fetched data are not showing while no error, how to fix?

    • @wildpat03
      @wildpat03 Рік тому +3

      As said by other, disable RLS for that table in the dashboard, top right corner just under the "Feedback on this page?" button.

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

    How Fetching a Single Item?

  • @alexpiano
    @alexpiano Рік тому +2

    If anyone got fetch error, in my case it was a missed spell. "Smothies" on Supabase and "Smoothies" on react with two o's.

  • @user-fw4lw6vo4l
    @user-fw4lw6vo4l 8 місяців тому +1

    Shouldnt you be fetching data from a separate backend section (backend folder), instead of doing it in the Home.js file of essentially your frontend part of your project?

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

    Too bad you don't do this with Vue, I'm confused with fetching & error handling

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

    Thank you teacher 🙏🏻

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

      Thanks for your support Isaac!

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

    is this secure ? calling the supabase on the client .?

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

    Thanks for helping 😇

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

      Thanks for watching Bhumesh! :)

  • @arkadi8499
    @arkadi8499 Рік тому +2

    fetch returns null

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

    what about pagination ? hmm

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

    Perfect !

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

    Does anyone else get 'Uncaught ReferenceError: process is not defined' when they try connecting their .env variables to the superbaseClient file?

    • @azkaarkhatib
      @azkaarkhatib 10 місяців тому

      I do. Did you find a solution?

    • @rjwhite4424
      @rjwhite4424 10 місяців тому

      make sure you have dotenv npm package installed and make sure you have
      import { config } from "dotenv";
      const dotenvConfig = config();
      if (dotenvConfig.error) {
      throw dotenvConfig.error;
      } at the top of your file @@azkaarkhatib

    • @lewyathan
      @lewyathan 8 місяців тому

      try adding NEXT_PUBLIC before the variables

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

    👍🏻👍🏻🔥

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

    why my data are not showing while there is no error.

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

      same here

    • @sh1ro9666
      @sh1ro9666 Рік тому +3

      turn off your RLS protocol in supabase, fixed my issue

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

      @@sh1ro9666 worked for me, thanks a lot

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

    good info

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

      Hope it was helpful! :)

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

    Thank you so much @netninja 🥰❣

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

    7/10? Hmm... Considering building a banana blaster.

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

    {2023-03-20}