https://supabase.com/ logo
Join DiscordCommunities
Powered by
# javascript
  • n

    nkmnz

    09/17/2021, 6:30 AM
    FWIW, I ended up using cookie-universal-nuxt (https://github.com/microcipcip/cookie-universal) to parse the session payload both at login into a cookie and on SSR into JSON (using nuxtServerInit) to populate the user profile on the server side. Should I also call
    refreshAccessToken()
    on SSR?
  • d

    Deleted User

    09/17/2021, 4:02 PM
    HI - is it possible to style
    <Select.Option>
    ?
  • s

    seufernandez

    09/17/2021, 7:36 PM
    Real quick question, how can I get table information using my SQL querys, as I can do with this fetch data below?
  • s

    seufernandez

    09/17/2021, 7:38 PM
    I tried with rpc("querys_name") but it returns NULL, but using this method above i got the data
  • s

    Scott P

    09/17/2021, 7:38 PM
    SELECT * FROM cities
  • s

    seufernandez

    09/17/2021, 7:40 PM
    Nice, but how I call this query from my app to get that info? 😅
  • s

    seufernandez

    09/17/2021, 7:40 PM
    Is that possible using supabase-js?
  • s

    Scott P

    09/17/2021, 7:41 PM
    Using the JS example you posted... Sorry, I'm a bit confused what you're trying to achieve. The JS example will produce the same information as the SQL query I posted.
  • s

    seufernandez

    09/17/2021, 8:07 PM
    No problem haha let me try to explain, Im trying to get follower and follower data using their id, as you can see below, but when i call the function it returns null
  • s

    seufernandez

    09/17/2021, 8:09 PM
    fer_id = follower_id fed_id = followed_id ps: nvm the next jwt variable not set haha
  • s

    seufernandez

    09/17/2021, 8:09 PM
    -
  • s

    seufernandez

    09/17/2021, 8:11 PM
    Info wich I can get using SQL query:
  • d

    Deleted User

    09/17/2021, 8:12 PM
    you should be checking that there isn't an error
  • d

    Deleted User

    09/17/2021, 8:12 PM
    and if there is, what it says
  • s

    seufernandez

    09/17/2021, 8:12 PM
    lemme try...
  • s

    seufernandez

    09/17/2021, 8:15 PM
    indded
  • s

    seufernandez

    09/17/2021, 8:15 PM
    "message": "More than one relationship was found for fnf_interactions and users"
  • s

    seufernandez

    09/17/2021, 8:17 PM
    playing: Help! - The Beatles (1965)
  • s

    seufernandez

    09/17/2021, 8:19 PM
    -
  • s

    seufernandez

    09/17/2021, 8:25 PM
    And If I set "fer_id" to be the unique 'foreign key relation' I can't see the Followed data : ( Just the follower data, wich is set as 'foreign key relation' haha
  • s

    Scott P

    09/17/2021, 8:27 PM
    You might be able to do this:
    Copy code
    js
    supabase.from('fnf_interactions')
      .select(`
        fed_id,
        users: fed_id ( name )
      `)
    That should join
    fnf_interactions
    and
    users
    table on the
    fed_id
    , but only retrieve the
    name
    property from the
    users
    table, and
    fed_id
    from the
    fnf_interactions
    table
  • s

    seufernandez

    09/17/2021, 8:39 PM
    Geeeeeeeeez it workssssss!!!! You are a legend my friend, Can I put your name on my App's Especial thanks"? haha
  • s

    seufernandez

    09/17/2021, 8:39 PM
    😎 🌹
  • s

    Scott P

    09/17/2021, 8:42 PM
    No need 🙂 - Just credit the community on Discord if you really want to add something
  • s

    seufernandez

    09/17/2021, 9:20 PM
    Of course, you can be sure I will 💚
  • s

    siduck

    09/18/2021, 12:56 AM
    hi guys im totally new to supabase , Im trying to make a login page
  • s

    siduck

    09/18/2021, 12:56 AM
    where do I start from?
  • s

    siduck

    09/18/2021, 12:57 AM
    this? https://supabase.io/docs/reference/javascript/supabase-client
  • s

    siduck

    09/18/2021, 1:19 AM
    i followed this https://supabase.io/docs/guides/auth/auth-github
  • s

    siduck

    09/18/2021, 1:19 AM
    I get this error
1...202122...81Latest