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

    user

    11/25/2021, 10:46 AM
    👋
  • u

    user

    11/25/2021, 10:46 AM
    Hows it going
  • v

    vish

    11/25/2021, 10:50 AM
    I've seen that, can you help me understand how can I further add different validation checks and report back a custom error depending which vaidation failed.
  • u

    user

    11/25/2021, 10:52 AM
    I have a question, is there any way to set a custom Domain to the user and a custom Email client with the non-self hosted version of Supabase? This isn't really an issue for me right now trying it out (and it's been awesome so far) but for consistency purposes, it would be nice If we can use our own email client and domain even if it just proxies to the generated URL. Unfortunately I cant just stick a CNAME over it because something something cloudflare.
  • v

    vish

    11/25/2021, 10:53 AM
    Example: One end point is to create customer /customer Now I want to validate before customer creation that the zipcode enterered must match the City name. ( Gives out error Zipcode and city mismatch) Or if the city name has non english characters (Gives out error Invalid characters in "city" or "state" or "country")
  • u

    user

    11/25/2021, 1:50 PM
    Hello 👏
  • j

    jumpship

    11/25/2021, 2:16 PM
    I want to be able to filter by people based on a bunch of booleans. My query in english is something like:
  • j

    jumpship

    11/25/2021, 2:16 PM
    country: Canada, role: developer, rails: true, wordpress: true, django: false, node: true, deployments: false
  • j

    jumpship

    11/25/2021, 2:17 PM
    I'm wondering how I should store all of those fields. I've got a column for role and country, but the rest I'm not sure about. Should I have a new field for each of those (wp / rails / django / node / etc — there would only be 10-15 max), or Should I store that in a jsonb column instead?
  • j

    jumpship

    11/25/2021, 2:18 PM
    I'm guessing the jsonb query will be much slower than if everything was in its own column, but I wonder would it be noticeably slow for a small dataset (1000 records or so)
  • j

    jumpship

    11/25/2021, 2:21 PM
    This is my current reference point, but wanted to do a quick double check 🙂
  • j

    jumpship

    11/25/2021, 2:21 PM
    https://www.reddit.com/r/PostgreSQL/comments/mop9ju/when_to_use_jsonb_vs_separate_columns/gu52pt6/?utm_source=reddit&utm_medium=web2x&context=3
  • l

    letourpowerscombine

    11/25/2021, 4:14 PM
    I have a
    users_pages
    many-to-many table. The users in this table are stored by
    user_id
    foreign key. I'm trying to display all of the
    email addresses
    , for every user that belongs to a given
    page
    . So I need to find all of the `user_id`s for a requested page — and then pull the
    email addresses
    associated with each of those `user_id`s. Something like this:
    Copy code
    javascript
            const { data, error } = await supabase
            .from('users_pages')
            .select(`*, users(email)`)
            .eq('page_id', PAGE_ID)
    What query should go into
    .select()
    , in order to return the
    email addresses
    from
    users
    table?
    s
    • 2
    • 4
  • s

    Steve

    11/25/2021, 6:08 PM
    visual API builder
  • s

    Steve

    11/25/2021, 6:18 PM
    many-to-many
  • a

    Adi

    11/25/2021, 9:06 PM
    Is it ok if I store JWT secret provided on supabase dashboard in backend services written in Nodejs, Java or Golang?? I want to let know that current user logged in on backend services
  • a

    Adi

    11/25/2021, 9:41 PM
    I also want to use bull queue which uses redis is it possible to connect it with supabase? https://github.com/OptimalBits/bull
  • c

    Cris Acosta

    11/26/2021, 1:37 AM
    hi guys
  • c

    Cris Acosta

    11/26/2021, 1:40 AM
    In the recover password, receveid a message "Send password recovery failed: Error recovering user"
    s
    • 2
    • 4
  • s

    silentworks

    11/26/2021, 1:50 AM
    Recovery password
  • s

    Sophic

    11/26/2021, 6:00 AM
    Is there any plans for additional pricing tiers?
  • l

    letourpowerscombine

    11/26/2021, 7:36 AM
    Is it accurate that there's no way to query
    auth.users
    ? As such, is it recommended to create a
    public.users
    table? Context: Trying to fetch a user's email from a
    user_id
    foreign key, can't query
    auth.users
    ?
  • l

    letourpowerscombine

    11/26/2021, 7:39 AM
    Beautiful, thank you so much @User!
  • c

    chipilov

    11/26/2021, 7:40 AM
    You don't need a new table, you can fetch the data with a view in the public schema, for example: CREATE VIEW public.get_user_email AS SELECT u.email FROM auth.users AS u WHERE auth.uid() = u.id;
  • l

    letourpowerscombine

    11/26/2021, 7:47 AM
    FYI that created an empty view for me. But I suppose it makes sense to create a public.users or public.profiles table in any case, given that more information could eventually be added beyond email address
  • c

    chipilov

    11/26/2021, 7:49 AM
    What do you mean empty? NOTE, the WHERE clause at the end - if auth.id() is empty (which would be the case if you are testing the view through the Dashboard editor), then you would get no rows. You can replace this where clause with whatever you want, but you need to ensure rows are properly secured
  • c

    chipilov

    11/26/2021, 7:50 AM
    And yes, you can also create another users table if you need to add more data - it's a matter of design
  • l

    letourpowerscombine

    11/26/2021, 8:00 AM
    Got it, thank you again for the insight and help!!
  • d

    Daniel526

    11/26/2021, 8:12 AM
    Hello
  • l

    letourpowerscombine

    11/26/2021, 8:16 AM
    How can you reload the schema cache in the Supabase UI? (https://postgrest.org/en/latest/schema_cache.html)
1...144145146...392Latest