https://supabase.com/ logo
Join DiscordCommunities
Powered by
# off-topic
  • d

    dperolio

    04/15/2023, 7:06 AM
    Yeah, I’m not great with database architecture. I actually failed DB like 3 times in college. 😦 How would you structure for users, user profile comments, episode comments, movie comments, reviews… I would make (profile) comments a nested collection on user collection, reviews a nested collection on movies collection and tv show collection, comments a nested collection on movies collection, tv show collection, and tv episode (which would be a nested collection on the tv show collection)…
  • d

    dperolio

    04/15/2023, 7:06 AM
    Collections are like, subtables I guess?
  • r

    Razoth

    04/15/2023, 7:07 AM
    i'd say you should probably look into graphql as a query language for complex nested queries like this. supabase offers a full graphql endpoint for you to use. tables are just setup as you would set up any table with foreign keys.
  • d

    dperolio

    04/15/2023, 7:08 AM
    Ugh I hate graphql. I’m a rest boi.
  • r

    Razoth

    04/15/2023, 7:08 AM
    from my understanding firebase doesn't use sql, its a document storage layout isn't it?
  • d

    dperolio

    04/15/2023, 7:08 AM
    Right. It’s more like json. I hate SQL.
  • r

    Razoth

    04/15/2023, 7:09 AM
    also, this is going really in deph, so i suggest to you make a post in the right channel, and you will probably get the answer.
  • r

    Razoth

    04/15/2023, 7:09 AM
    that makes supabase probably not right for you.
  • w

    Weykon

    04/15/2023, 7:13 AM
    Hi, I try the OPENAI case example, I got stuck at set Vector extension to database , any tips?
  • r

    Razoth

    04/15/2023, 7:15 AM
    try to create a post on the help and questions channel.
  • w

    Weykon

    04/15/2023, 7:18 AM
    nice, I will write down for it
  • m

    Maher

    04/15/2023, 8:26 AM
    how to get support from supa base?
  • r

    Razoth

    04/15/2023, 9:35 AM
    write a ticket on https://app.supabase.io/support/new
  • s

    silentworks

    04/15/2023, 10:50 AM
    In relational database these would just be related tables, we don't tend to do nesting in relational databases (although you can with a jsonb type column). You would essentially model your database in a way that related tables have an identifier that matches its parent table record. Supabase uses PostgREST for its querying in its SDK and that can return the results as nested json if your tables are modelled correctly. Do note you should continue any follow up questions in #1006358244786196510.
  • d

    dperolio

    04/15/2023, 2:56 PM
    Yeah, maybe not. :/ I really do like the document storage type system of Firebase better. I like how Supabase is posting the latest videos and tutorials for how-to with Next.js 13 SSR though.
  • r

    Razoth

    04/15/2023, 8:34 PM
    anyone? 😄
  • v

    v1olen

    04/16/2023, 2:15 PM
    😄

    https://cdn.discordapp.com/attachments/839993398554656831/1097163247154634835/Screenshot_2023-04-16_at_16.14.42.png▾

  • s

    silentworks

    04/16/2023, 2:16 PM
    It forgot to say it's experimental and some answers may not be completely correct.
  • v

    v1olen

    04/16/2023, 2:17 PM
    That's because it's experimental 😄
  • g

    garyaustin

    04/16/2023, 3:36 PM
    Hate it when this happens to an API I've been using for 10 years. Use it a forum I hate maintaining to begin with... Also means every post in one of the forums has now lost the image that went with it.

    https://cdn.discordapp.com/attachments/839993398554656831/1097183724078104616/image.png▾

  • s

    silentworks

    04/16/2023, 3:39 PM
    Oh no, its really hard when depending on third party APIs but sometimes you can't start building without them.
  • g

    garyaustin

    04/16/2023, 3:41 PM
    Yeah they actually served the little images of a webpage and the snips were just a url to their site. Not sure I'll bother finding another solution, probably will just turn of the image feature.
  • s

    silentworks

    04/16/2023, 3:49 PM
    Time to build your own.
  • u

    Unknown Member

    04/16/2023, 11:58 PM
    I love how Supabase went all 80s synth disco themed.
  • u

    Unknown Member

    04/16/2023, 11:58 PM
    They clearly know how to partay
  • r

    Rikka

    04/17/2023, 3:03 AM

    https://cdn.discordapp.com/attachments/839993398554656831/1097356750719557682/image.png▾

  • r

    Rikka

    04/17/2023, 3:05 AM
    A custom hook I write using useQuery combine Supabase. Are you have the better solution to write?
  • k

    Kamael愛

    04/17/2023, 7:59 AM
    hi, how do i enable team plan on my subscription?

    https://cdn.discordapp.com/attachments/839993398554656831/1097431063367778394/image.png▾

  • u

    Unknown Member

    04/17/2023, 11:40 AM
    Please ask on #1006358244786196510 . This is off-topic chat only.
  • l

    Limuz

    04/17/2023, 3:56 PM
    its not directly the right channel but i think its funny to my defence i am learning 😄 ( i whant a channel fail of the day) 1h debugging reseting root server setting up local env i whas so sure that my code isnt at fault there is no way need to be anything else
    Copy code
    js
    const { user, error } = await supabase.auth.getUser()
    why is user always empty.....
1...379380381...392Latest