https://supabase.com/ logo
Join Discord
Powered by
# help
  • j

    JoshTheNerd

    09/15/2021, 10:05 PM
    Thanks 😄
  • j

    JoshTheNerd

    09/15/2021, 10:06 PM
    I got decoding the JWT working yesterday.
  • j

    JoshTheNerd

    09/15/2021, 10:06 PM
    Just to check the uuid in the JWT and compare it against my users table now.
  • t

    Thomas B

    09/15/2021, 10:07 PM
    🙂
  • t

    tinjaw

    09/16/2021, 12:02 AM
    Where can I setup
    User-defined Enumerated Types
    ?
  • s

    Scott P

    09/16/2021, 12:12 AM
    With a simple SQL query. Example:
    CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
    https://www.postgresql.org/docs/9.1/datatype-enum.html
  • s

    Syns

    09/16/2021, 12:43 AM
    thanks a lot
  • s

    stibbs

    09/16/2021, 6:11 AM
    Hi, I'm trying to customise the magic link email template currently - is there a documented list of what is available to use within the template? The base template includes
    {{ .ConfirmationURL }}
    . Is there anything else?
  • t

    thorwebdev

    09/16/2021, 7:04 AM
    These are somewhat documented here: https://github.com/supabase/gotrue#e-mail You can do a cmd +f for
    template
    and step through the different ones.
  • p

    patrik

    09/16/2021, 7:32 AM
    what is the best way to ovveride ui styles like the shadow on :focus?
    j
    • 2
    • 3
  • r

    Reuben

    09/16/2021, 8:47 AM
    n00b question: How do I filter on
    null
    values? I tried with
    .eq('date', null)
    and
    .eq('date', 'null')
    'invalid input syntax for type date: "null"'
  • j

    jason-lynx

    09/16/2021, 9:08 AM
    you'll have to use `.is()`: https://supabase.io/docs/reference/javascript/is
  • r

    Reuben

    09/16/2021, 9:31 AM
    Many thanks!
  • m

    Mattias

    09/16/2021, 11:08 AM
    Problem with tables
  • r

    Reuben

    09/16/2021, 11:24 AM
    Would want to query: lte('dateOut', '2021-01-31') .gte('dateOut', '2021-01-01') OR .is('dateOut', null) Need help on that please
    t
    • 2
    • 7
  • s

    silentworks

    09/16/2021, 12:11 PM
    There are a few examples on the page that was linked to, also please create a thread the next time for this.
  • r

    Reuben

    09/16/2021, 12:14 PM
    Sorry, will do. I fail to locate the example where you can do or() with is(). Sql would be WHERE I want to query a date field on a date range but also to include result where the field is empty.
  • t

    thorwebdev

    09/16/2021, 3:03 PM
    Using .or
  • n

    nyellin

    09/16/2021, 4:04 PM
    Hi all, is it possible to write Supabase functions in Python? Python is listed twice on the website, but it doesn't appear in the supabase console under the extensions page. (Places where Python support is mentioned on the Supabase website: https://supabase.io/docs/guides/database/extensions and https://supabase.io/docs/faq#have-you-built-firebase-feature-yet)
  • e

    eyk

    09/16/2021, 4:22 PM
    Hey, is there a reason why I no longer can create tables with automatically generated uuids as primary column?
  • f

    frubalu

    09/16/2021, 5:39 PM
    Does anyone know how to order nested data from a supabase select?
    Copy code
    const { data, error } = await supabase
          .from('packs')
          .select(
            `
              *,
              categories(*, category_items(*, item:item_id(*)))
            `
          )
          .order('created_at', { ascending: true })
          .order('created_at', { foreignTable: 'categories' })
          .order('position', { foreignTable: 'category_items', ascending: false })
          .eq('user_id', token.sub);
    Essentially I am selecting from the packs table, all of the related categories, category_items and items. I'd like for the nested category_items to be ordered by position, however they're all coming in totally out of order for some reason
    m
    • 2
    • 14
  • b

    Bwaldir

    09/16/2021, 6:17 PM
    How to do the query to obtain the animal of a single user . Help me
    s
    • 2
    • 14
  • j

    jon.m

    09/16/2021, 7:58 PM
    I've got a chat component similar in design to LinkedIn (thread sidebar, main chat window). I've set it up so when you click on a thread, it passes the thread id to the chat window, which then fetches the messages. The problem is that if you click between threads rapidly, the network requests stack on top of each other and the browser ultimately freezes. This happens, I think, partly because my fetch messages runs in useEffect and there are some unexpected rerenders. I'm trying to think of solutions other than grabbing threads + messages and storing the whole thing in state.
  • j

    jon.m

    09/17/2021, 12:26 AM
    The slack clone uses a dynamic route to grab the channel id, is that a best practice for this style set up?
  • j

    JoshTheNerd

    09/17/2021, 1:34 AM
    Can you change your Supabase project password?
    s
    • 2
    • 5
  • j

    JoshTheNerd

    09/17/2021, 1:34 AM
    I forgot it...
  • s

    silentworks

    09/17/2021, 9:41 AM
    Supabase project password
  • f

    FlorinPop

    09/17/2021, 9:53 AM
    Supabase GUI seems to be buggy...
    s
    • 2
    • 25
  • f

    FlorinPop

    09/17/2021, 9:53 AM
    Can't edit a column properly
  • f

    FlorinPop

    09/17/2021, 9:53 AM
    any ideas what I can try?
1...899091...316Latest