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

    wiesson

    12/15/2021, 7:43 PM
    ah wait
  • w

    wiesson

    12/15/2021, 7:44 PM
    I can chain eq and or
  • j

    jensen

    12/15/2021, 7:44 PM
    cool
  • j

    jensen

    12/15/2021, 7:44 PM
    yeah I'm not entirely sure, but I use these docs https://supabase.github.io/postgrest-js/classes/postgrestfilterbuilder.html
  • w

    wiesson

    12/15/2021, 7:46 PM
    Copy code
    .eq("status", "publish")
          .or(`title.ilike."${searchTerm}",location.ilike."${searchTerm}"`);
  • w

    wiesson

    12/15/2021, 7:46 PM
    This might be an AND with OR (...)
  • j

    jensen

    12/15/2021, 7:46 PM
    yeah looks like it
  • j

    jensen

    12/15/2021, 7:46 PM
    lmk
  • w

    wiesson

    12/15/2021, 7:47 PM
    works :9
  • j

    jensen

    12/15/2021, 7:47 PM
    nice
  • w

    wiesson

    12/15/2021, 7:47 PM
    https://www.eightyfourrooms.com/search?q=Balearic%20Islands
  • j

    jensen

    12/15/2021, 7:47 PM
    looks great
  • n

    nish

    12/16/2021, 7:57 AM
    How do I go about submitting form data and multiple files to storage in one onSubmit func?
  • a

    Azura

    12/16/2021, 1:38 PM
    Hope everyone's having a good day. I was wondering how I can get my supabase instance's hash arguments so I can some extra server-side validation for the password reset flow.
  • a

    Azura

    12/16/2021, 1:38 PM
    Is this possible to retrieve?
  • j

    jonny

    12/16/2021, 9:31 PM
    I think supabase storage uploads have to be done one at a time. so you might need to map() all the files. on the plus side, at least you can easily make sure each upload is successful. although i can understand its not great if you have a lot of files to upload.
  • g

    Gianni

    12/17/2021, 6:50 PM
    Hey guys, i am wondering how to append values to Text Arrays on Updates in JS 0.o Is there a possibility ?
  • m

    matheusbn

    12/17/2021, 8:06 PM
    How would I call a postgres extension function on select? I need to get a postgis geography as text
    SELECT ST_AsText(location)
    but the js client interprets the parenthesis as a join
  • s

    Scott P

    12/17/2021, 8:16 PM
    Write a postgres function and pass parameters into it via an rpc call
  • m

    matheusbn

    12/17/2021, 8:30 PM
    oh okk
  • m

    matheusbn

    12/17/2021, 8:30 PM
    thanks scott!
  • p

    Pigpot

    12/19/2021, 12:45 PM
    hello
  • h

    Hielke

    12/19/2021, 11:06 PM
    Hey everyone, I'm having some trouble understanding how the api works. It's about detecting an already existing user I have email confirmation enabled, so signUp() returns a obfuscated/fake user object. Fair enough. Then I should check if the user already exists with the getUser() function, but that requires the user's access token... Which I don't have...
  • k

    krithika

    12/20/2021, 5:26 AM
    ^ I'm new to supabase, and i was a bit confused on this as well - how would you get the token on signUp or signIn?
  • a

    anothercoder

    12/20/2021, 8:18 AM
    The response from signIn contains "access_token" which is the user's jwt.
  • t

    tdotflight22

    12/20/2021, 8:19 AM
    Hi all, im getting this unexpected error for my signUp function, very confused as I'm following the documentation and tutorials extremely closely and genuinely have no clue where I go from here
  • t

    tdotflight22

    12/20/2021, 8:19 AM
    ''' const onSubmit = async data => { console.log(data.email) console.log(data.password) console.log(typeof(data.email)) console.log(typeof(data.password)) const {user, error} = await supabase.auth.signUp({ email : data.email, password : data.password }) console.log(error) console.log(user) } '''
  • t

    tdotflight22

    12/20/2021, 8:20 AM
    I have double checked and confirmed that data.email and data.password and strings
  • t

    tdotflight22

    12/20/2021, 8:20 AM
    I put them into the signUp function and have no clue why it's not working
  • m

    Mihai Andrei

    12/20/2021, 9:25 AM
    Are you using a form with onSubmit?
1...373839...81Latest