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

    silentworks

    02/10/2022, 11:00 AM
    Error in SQL editor
  • y

    yongelee

    02/10/2022, 5:01 PM
    Hi I have this query
    Copy code
    let query = supabase
        .from("nft")
        .select(
          `*,
       user_details ( verified_user, id, twitter ),
       files:screenshot_file_id (file_name),
       admin_actions(*)
       `
        )
        .order("id", { ascending: false });
  • y

    yongelee

    02/10/2022, 5:01 PM
    for
    admin_actions(*)
    how can i add ascending: false to that?
  • y

    yongelee

    02/10/2022, 5:09 PM
    i did it through js
  • a

    ak4zh

    02/10/2022, 7:33 PM
    I am working on a multi-tenant app, if following approach appropriate: https://drawsql.app/connection01/diagrams/supabase-multi-tenant 1) User signup on my app (using auth.users table) a single user is created, no separate user per organization. 2) App shows them two tab: - Create a new Organization - List of organizations (they can select one and perform all CRUD stuffs as per RLS) 3) If they choose to create a new organization, a new organisation is created in
    public.organizations
    with created link to auth.users 4) All columns that contains organizations data contains two column
    user_id
    and
    organization_id
    5) RLS policies check if user is a member of the organization using
    auth.users.raw_user_meta_data
    g
    s
    • 3
    • 5
  • g

    garyaustin

    02/10/2022, 8:15 PM
    multi-tennant app
  • s

    Sealion

    02/10/2022, 8:29 PM
    When do auth-call (signup for example) why two DB-calls?
    c
    • 2
    • 7
  • a

    ak4zh

    02/11/2022, 6:44 AM
    When I create a new function it says succefully created but functions page is always empty. When I try to create same function with same name it says it already exists. Refreshed page but still same
    s
    • 2
    • 1
  • c

    christianalares

    02/11/2022, 8:10 AM
    Yeah, I guess your function can take the client as argument and use that.
  • s

    silentworks

    02/11/2022, 8:57 AM
    Function page not showing functions created
  • n

    nixfixbix

    02/11/2022, 9:28 AM
    hello fellow supabase'rs. Have anyone implemented some auth where a user is only allowed to have a single session at a time? I.e. if I log on on one device, then it logs me off on all other devices
    c
    • 2
    • 6
  • r

    Raketa

    02/11/2022, 11:53 AM
    Hello everyone, I have the following question. If you put a million files in one folder on the server, then during browser requests (to display a picture or download a file), the server will slow down terribly. Therefore, the folder is usually divided into subfolders by dates, for example, by year and month, such as images/users/2022-2/ , images/users/2022-3/. In my backend, I do just that - first I create a subfolder, then I put the file there. But firstly, the subbase does not have a method for creating a folder, and secondly, it says that you can create folders as you like, the correct or incorrect structure is not indicated. We can definitely accumulate a million files in one folder and nothing will happen? That is, is it provided for in the final storage or not?
    s
    • 2
    • 2
  • j

    jaf

    02/11/2022, 12:00 PM
    Is there a service disruption? All my requests seem to time out. When I load this page:
    https://app.supabase.io/project/[project_id]/api
    it loads forever. I can still look at the data in the tables though
    s
    • 2
    • 4
  • s

    silentworks

    02/11/2022, 12:22 PM
    Servixw disruption
  • s

    silentworks

    02/11/2022, 12:25 PM
    Folder in storage
  • c

    chipilov

    02/11/2022, 12:58 PM
    Automatically logging out user from other devices
  • p

    Palash

    02/11/2022, 4:06 PM
    Hi my supabase.auth.signIn() is not returning anything using supabase-js.
    s
    • 2
    • 10
  • s

    silentworks

    02/11/2022, 4:18 PM
    Sign In method not returning anything
  • b

    bruno_kiafuka

    02/11/2022, 4:38 PM
    Hello everyone, I am having some trouble with the js client
    signIn()
    method. I've added the users into my `auth.users`table using a sql dump from another PostgreSQL db (modified it a bit so I could add the required fields), now when I try running
    supabase.auth.signIn()
    passing the users' `email`and
    password
    I get the following error:
    Copy code
    json
    "error": {
        "message": "Database error querying schema",
        "status": 500
    }
    Yet, If I add a new user using the
    signUp()
    method I am able to login the newly created user without any problems. Is there any thing that I might have done wrong on during the migration process? > I looked into this discussion https://github.com/supabase/supabase/discussions/3440 and I am unsure if they are related issues as I am not self hosting the db. Thanks in advance 🙂
    g
    • 2
    • 38
  • r

    Rutik

    02/11/2022, 5:16 PM
    do we have any kind of guide for structuring our code while building apps with supabase and (react or nextjs)?
  • p

    ProtoFeather

    02/11/2022, 5:58 PM
    Standard code conventions should be followed as usual 🙂
  • p

    ProtoFeather

    02/11/2022, 5:59 PM
    Getting a "An error has occured: NetworkError when attempting to fetch resource." when performing a query in the sql editor. Is it me or the server that's having issues?
  • n

    Nig0

    02/11/2022, 6:24 PM
    Does supabase support TG_OP in their functions?
    g
    • 2
    • 2
  • d

    Daveo

    02/11/2022, 6:47 PM
    Hey guys I can't see a tier for pro pay as you go in the dashboard. I'm already on the pro plan but want to move to pro + pay as you go. Anyone have any ideas? Thanks
  • s

    Scott P

    02/11/2022, 6:49 PM
    Contact support and they'll discuss your requirements
  • d

    Daveo

    02/11/2022, 6:50 PM
    Thanks @User
  • g

    garyaustin

    02/11/2022, 8:22 PM
    TG_OP
  • p

    ProtoFeather

    02/11/2022, 8:24 PM
    I can't seem to delete a column. I get stuck on the loading. Doing it from the SQL editor doesn't work either. any clues?
  • p

    ProtoFeather

    02/11/2022, 8:25 PM

    https://whitepanther.club/i/j9thv.png▾

  • j

    jonny

    02/11/2022, 9:06 PM
    https://app.supabase.io/support/new can you open a support ticket?
1...218219220...316Latest