https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • h

    HorseShoe

    09/30/2021, 3:29 PM
    i have used foreign key for user
  • h

    HorseShoe

    09/30/2021, 3:29 PM
    in messages table
  • h

    HorseShoe

    09/30/2021, 3:42 PM
    Ah nvm rookie mistake
  • h

    HorseShoe

    09/30/2021, 3:42 PM
    Had turned on RLS and forgot to add policies
  • h

    HorseShoe

    09/30/2021, 3:42 PM
    I thought it wud error out tho instead it just returns null in joins and an empty array if i query that table directly
  • y

    YelloJello

    10/01/2021, 11:03 AM
    Does the download button in the storage dashboard work properly? Wasted a good hour, because the downloaded file would only have "null" in them, only to find out that if you just open the link you'd get the file with the correct content. I've set the correct content type, is there something I'm missing? Context: Happens with text files with the default content type and json files when content type is set to applicaton/json, when writing a string, haven't checked if this happens when you upload the file with the content directly
  • a

    Ant

    10/01/2021, 2:32 PM
    @User just launched his project on product hunt! lets show him some love for supporting the community by boosting everyone's projects! https://www.producthunt.com/posts/made-with-supabase
  • n

    Nico Maybach

    10/01/2021, 7:49 PM
    Has anybody else problems with the API, for me nothing is responding to any calls. Also I can't send magic links...
  • h

    HarryET

    10/01/2021, 7:59 PM
    Whoo! Hacktoberfest completed
  • j

    jon.m

    10/02/2021, 4:19 AM
    so you can delete objects from storage and the public url still owrks
    s
    • 2
    • 4
  • j

    jon.m

    10/02/2021, 4:20 AM
    that doesn't seem right
  • s

    silentworks

    10/02/2021, 8:55 AM
    Deleted objects from storage still has a working public url
  • d

    DOPΣ

    10/02/2021, 9:19 AM
    Hi
  • y

    YogurtDrinker

    10/02/2021, 12:14 PM
    Just wonder is there anything for the js library or does
    select()
    work the same way
  • s

    silentworks

    10/02/2021, 2:11 PM
    I think this sentence is incomplete, can you clarify what you are asking please?
  • y

    YogurtDrinker

    10/02/2021, 2:57 PM
    Oh as in
    select()
    selects the entire row
  • y

    YogurtDrinker

    10/02/2021, 2:57 PM
    The one in stackoverflow returns a count/ a result which states one
  • y

    YogurtDrinker

    10/02/2021, 2:58 PM
    Lesser data transferred is better right?
  • h

    Hal

    10/02/2021, 2:59 PM
    trying to understand the use of foreign key for storage. I see that storage queries accept the path to the stored object. So, what's the use of having its foreign key in the database?
  • s

    silentworks

    10/02/2021, 3:09 PM
    It’s still unclear what you are asking
  • y

    YogurtDrinker

    10/02/2021, 3:19 PM
    As in
    select()
    selects all the data. Is it possible to just do a
    count()
    without doing a select
  • s

    silentworks

    10/02/2021, 3:20 PM
    Yes you can create a function to do this and call it via .rpc
  • y

    YogurtDrinker

    10/02/2021, 3:44 PM
    I see okay thanks. Probably just sticking with just plain ol select. Doesn't seem like its worth that much to just count it when select does the trick
  • c

    chipilov

    10/02/2021, 4:15 PM
    select() accepts a second parameter which allows exactly what you need - it's name is a little strange: "head"
  • c

    chipilov

    10/02/2021, 4:16 PM
    for example: supabase.from('cities').select('*', { head: true, count: exact }) - this should return only the count of cities
  • g

    Guru

    10/02/2021, 8:58 PM
    Which is the best way to contact Supabase for event support/ sponsorships?
  • y

    YogurtDrinker

    10/03/2021, 4:17 AM
    Wow thanks!
  • y

    YogurtDrinker

    10/03/2021, 4:17 AM
    😄
  • a

    AnishDe12020

    10/03/2021, 7:08 AM
    guys, what do I do here?
  • a

    AnishDe12020

    10/03/2021, 7:27 AM
    nvm, figured it out
1...109110111...392Latest