https://supabase.com/ logo
Join Discord
Powered by
# help
  • f

    Flyken

    07/27/2021, 5:25 PM
    @User huh?
  • f

    frubalu

    07/27/2021, 5:25 PM
    oh right, i mistyped my answer.
  • f

    frubalu

    07/27/2021, 5:25 PM
    Copy code
    let { data, error } = await supabase.from('users_games').select().eq('user_id', user.id);
  • f

    Flyken

    07/27/2021, 5:26 PM
    but
  • f

    Flyken

    07/27/2021, 5:26 PM
    user_id is not a row
  • s

    Scott P

    07/27/2021, 5:26 PM
    user_id
    would be a column
  • f

    frubalu

    07/27/2021, 5:26 PM
    this is more or less a join table, right? you might want to rename your
    users
    column to
    user_id
    instead
  • f

    Flyken

    07/27/2021, 5:28 PM
    now its just not returning
  • f

    Flyken

    07/27/2021, 5:28 PM
    why is it undefined on first render??????
  • f

    frubalu

    07/27/2021, 5:28 PM
    what'd you change?
  • f

    Flyken

    07/27/2021, 5:29 PM
    i renamed these
  • f

    Flyken

    07/27/2021, 5:29 PM
    row_id is now key
  • f

    Flyken

    07/27/2021, 5:29 PM
    and id is the user
  • f

    Flyken

    07/27/2021, 5:29 PM
    its not returning at all
  • f

    frubalu

    07/27/2021, 5:29 PM
    ummm, this is kind of confusing haha
  • f

    Flyken

    07/27/2021, 5:30 PM
    this is so frustrating
  • f

    Flyken

    07/27/2021, 5:30 PM
    should we start over from the wanted result?
  • f

    frubalu

    07/27/2021, 5:30 PM
    ok do this: 1. change row_id to id 2. change id to user_id 3. change games to game_id
  • f

    frubalu

    07/27/2021, 5:30 PM
    that'd be a proper join table
  • f

    frubalu

    07/27/2021, 5:32 PM
    wtf does that mean...
  • s

    Scott P

    07/27/2021, 5:32 PM
    I've seen that pop up a few times lately, and I'm not sure why it happens or how to fix it 😦
  • f

    frubalu

    07/27/2021, 5:32 PM
    are you able to drop that entire table and rebuild it?
  • f

    Flyken

    07/27/2021, 5:33 PM
    there
  • f

    frubalu

    07/27/2021, 5:33 PM
    ok nice!
  • f

    Flyken

    07/27/2021, 5:33 PM
    i had to remake the columns
  • f

    frubalu

    07/27/2021, 5:33 PM
    perfect
  • f

    Flyken

    07/27/2021, 5:33 PM
    ok so
  • f

    Flyken

    07/27/2021, 5:33 PM
    what should my query look like?
  • f

    frubalu

    07/27/2021, 5:33 PM
    wait one more thing, does your third column reference the
    game_directory
    table?
  • f

    Flyken

    07/27/2021, 5:33 PM
    yea
12345...316Latest