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

    nikivi

    04/15/2022, 2:07 AM
    all I see are type definitions that have no docs on them 😦
  • n

    nikivi

    04/15/2022, 2:08 AM
    I want to add an entry to a table
  • n

    nikivi

    04/15/2022, 2:08 AM
    https://supabase.github.io/supabase-js/modules/lib_SupabaseQueryBuilder.html
  • n

    nikivi

    04/15/2022, 2:08 AM
    I assume I need this and write my SQL?
  • n

    nikivi

    04/15/2022, 2:08 AM
    https://supabase.github.io/supabase-js/classes/lib_SupabaseQueryBuilder.SupabaseQueryBuilder.html
  • n

    nikivi

    04/15/2022, 2:08 AM
    its not very descriptive what it does
  • n

    nikivi

    04/15/2022, 2:09 AM
    or actually wait there are docs if you scroll more 🎊
  • n

    nikivi

    04/15/2022, 2:09 AM
    https://github.com/supabase/supabase-js
  • n

    nikivi

    04/15/2022, 2:09 AM
    also why do I not get types if I install the package
  • n

    nikivi

    04/15/2022, 2:10 AM
    I did
    npm install @supabase/supabase-js
    then in code I get
  • n

    nikivi

    04/15/2022, 2:10 AM
    https://supabase.github.io/supabase-js/classes/lib_SupabaseQueryBuilder.SupabaseQueryBuilder.html but here it is in the api
  • g

    garyaustin

    04/15/2022, 2:11 AM
    You seem to be referring to the main supabase-js client code. Documentation is mainly here: https://supabase.com/docs/reference/javascript/supabase-client
  • n

    nikivi

    04/15/2022, 2:11 AM
    oh I tried that page
  • n

    nikivi

    04/15/2022, 2:11 AM
    but it's bugged, will try chrome
  • g

    garyaustin

    04/15/2022, 2:12 AM
    Please start a thread if you add more to this.
    n
    • 2
    • 17
  • n

    nikivi

    04/15/2022, 2:24 AM
    is there a way to run this example https://supabase.com/docs/reference/javascript/auth-signup using top level await?
    • 1
    • 7
  • n

    nikivi

    04/15/2022, 8:05 AM
    I ran
    Copy code
    const {} = await supabase.auth.signUp({
      email: "my-email@gmail.com",
      password: "ar8Kevz!Hm4!b9qs9qo*Q!a",
    });
    
    const { user, session, error } = await supabase.auth.signIn({
      email: "my-email@gmail.com",
      password: 'ar8Kevz!Hm4!b9qs9qo*Q!a',
    })
    and my user is null. how can that be? I don't get error from signUp maybe I don't get something about how supabase deals with users?
    e
    • 2
    • 16
  • n

    nikivi

    04/15/2022, 8:23 AM
    I ran
  • p

    prattjc

    04/15/2022, 1:19 PM
    Do we have a way to filter through a JSON array properties on Supabase ?
  • p

    prattjc

    04/15/2022, 1:21 PM
    if the there's a Team table with a Monsters JSON array property, do we have a way to filter through the Monsters JSON array to find an element ?
    g
    e
    • 3
    • 15
  • g

    garyaustin

    04/15/2022, 2:43 PM
    filter json
  • m

    mrboutte

    04/16/2022, 9:31 PM
    I’m seeing something weird with the supaBaseClient sdk and it’s related to RLS. I’ve got the following policies defined on a table (see attachment) and I only get data back on initial load. If I refresh, I’m getting back an empty array. It definitely seems RLS related because when I temporarily disable RLS for that table — I get back results every time, even on refresh
    g
    • 2
    • 6
  • d

    Derek

    04/17/2022, 5:20 PM
    Does anyone know how to generate types for typescript?
    b
    f
    • 3
    • 9
  • d

    Derek

    04/17/2022, 5:20 PM
    Getting a no matches found response following the docs
  • b

    barry

    04/17/2022, 7:57 PM
    Does anyone know how to generate types
  • c

    chizom

    04/18/2022, 4:12 PM
    How can I redirect users after they have used magic link For example: Login page is at www.xyz.com And when they click the magic link, they should be redirected to www.xyz.com/dashboard Are there any parameter I have to add?
    g
    m
    +2
    • 5
    • 29
  • g

    garyaustin

    04/18/2022, 5:09 PM
    magic link
  • h

    Hoely

    04/19/2022, 8:57 AM
    Anyone have an idea why upload using base64 is not working on react native web, but works on react native app?
    • 1
    • 1
  • l

    Luc

    04/19/2022, 6:39 PM
    Hey guys, I have a question, about using SUPABASE PROVIDER AUTH in nextjs. When I want to authenticate, supabase redirects me to a url that doesnt exist. Is there any way to signin with popup, or to fix te issue.
    f
    • 2
    • 5
  • j

    joshcowan25

    04/20/2022, 4:34 AM
    Is there a way to get random rows using Supabase .js? Like, select 100 rows from a table but randomized/shuffled?
    g
    • 2
    • 2
1...575859...81Latest