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

    NicoNico

    04/07/2022, 12:14 AM
    I ended up just connecting directly to the DB and using native transactions to accomplish what I was looking to do. I'm rarely talking to supabase directly from the client in any case so seems like that's the preferred approach in my situation?
    n
    • 2
    • 1
  • d

    digitalsimboja

    04/07/2022, 5:00 AM
    Hello, I am happy to be here. Now I ask: Following this -https://github.com/supabase-community/supabase-graphql-example I ran
    yarn codegen:fetch
    and got these errors
    n
    • 2
    • 1
  • m

    madsbuch

    04/07/2022, 8:53 AM
    Hello! I have been looking for a way to reset the service role secret. Is this possible?
    n
    • 2
    • 3
  • m

    mellson

    04/07/2022, 11:49 AM
    Is there a way to localize the strings in Supabase UI. Specifically the Auth components?
    n
    f
    • 3
    • 7
  • m

    Manuel Coffin

    04/07/2022, 1:14 PM
    Hi everyone! I have a question about best practices. I have a typeahead input on my website. When the user types in, I make a query to get him a list of cities. Right now, I make a query every 500ms, but I don't know if it can be too much for my backend. My question is, what would be the best practice for this? Limit to a query every second? thanks!
    n
    o
    • 3
    • 5
  • s

    STILLWATER;

    04/07/2022, 1:18 PM
    for onConflict parameter in upsert, what if we want to check on composite unique columns?
    n
    f
    s
    • 4
    • 9
  • n

    Needle

    04/07/2022, 1:18 PM
    Hello @STILLWATER;! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
    /title
    command! We have solved your problem? Click the button below to archive it.
    • 1
    • 2
  • i

    InvestorChris

    04/07/2022, 2:12 PM
    Stupid question but how to I put header inside my insert method? currently I get insert because I have a policy that only "authorizated people" has access, but I am logged in
    n
    g
    • 3
    • 22
  • t

    timeforpoptarts

    04/07/2022, 2:23 PM
    I am struggling with seeing JWT expired from API routes immediately after user auth workflow. Our setup is pretty basic. NextJS API handlers are wrapped in withAuthRequired helper.
    n
    s
    • 3
    • 8
  • a

    Amos

    04/07/2022, 2:42 PM
    When uploading an avatar to a public bucket I get the following error when
    upsert
    is set to `true`: "new row violates row-level security policy (USING expression) for table \"objects\", but when it's set to
    false
    it works fine. Any ideas?
    n
    g
    • 3
    • 3
  • b

    BallisticSwami

    04/07/2022, 3:20 PM
    Can someone give me an efficient way to limit the sum total size of files a user can upload? Like a single user can only upload upto 50MB
    n
    f
    • 3
    • 12
  • m

    mikepeiman

    04/07/2022, 3:48 PM
    I'm working on updatePassword method and getting
    failed to fetch
    error. Can anyone help me solve this please? I'm sending request as
    const { error, data } = await supabase.auth.api.updateUser( access_token, { password : password });
    and it returns null data and the error I mentioned. I'm logging out the token and password in the function next to this, so I know they exist.
    n
    • 2
    • 4
  • s

    stnmonroe

    04/07/2022, 3:49 PM
    How can one get the count of a relationship? For example...
    Copy code
    ...from('notes').select('
     *,
     tasks({ count: 'exact', head: true })
    '),
    n
    s
    • 3
    • 5
  • i

    inmisi

    04/07/2022, 3:54 PM
    I am in a vanilla React Native project should I use the React.js installation or the Expo installation?
    n
    s
    • 3
    • 5
  • l

    Lesourdingo

    04/07/2022, 5:00 PM
    I would like to insert this data: [{ name: 'Paris', country: France }, { name: 'Tokyo', country: Japan }] But my table has a country_id column as a foreign key. So i will need to do this: const { data, error } = await supabase .from('cities') .insert([ { name: 'Paris', country_id: 1 }, { name: 'Tokyo', country_id: 2 } ]) How can i get the the country_id to insert the data?
    n
    g
    • 3
    • 12
  • j

    JR23

    04/07/2022, 6:18 PM
    hello. is it possible to force user password to have at least one symbol? I want this server side and not only client side
    n
    g
    • 3
    • 6
  • t

    theuknowner

    04/07/2022, 6:52 PM
    Is it better to have one listener for all rows in table or one listener for each specific row? I want the user to listen for status change of other users only if they have a conversation.
    n
    • 2
    • 1
  • s

    SuecoMarcus

    04/07/2022, 8:52 PM
    This URL is giving a 521 status code: https://azioqgupehjwofkjwddr.supabase.co/ and I have no idea why.
    n
    • 2
    • 2
  • m

    Muezz

    04/07/2022, 9:08 PM
    Is it possible to add a custom made function in the default value of a column field? For instance, what I expect to happen is that I insert a row without any value for the column in question. Because there is no value there, it runs that function and ends up with a value that is dependent on lets say the last added row.
    n
    f
    • 3
    • 11
  • s

    scentescent

    04/07/2022, 10:19 PM
    I'm a little confused about the supabase CLI and config.toml. I see some basic support for migrations there (
    supabase db push
    ,
    supabase migration new
    ). Are these documented somewhere? Are they production ready?
    n
    • 2
    • 2
  • l

    luongredhead

    04/07/2022, 10:24 PM
    Hi guys. I run into the
    An error has occured: Failed to fetch
    after running queries that involve millions of rows from the Sql editor. Is there any way to avoid getting timed out running this kind of queries? Thank you.
    n
    f
    • 3
    • 4
  • n

    Nife - nida

    04/07/2022, 10:27 PM
    Need help with github login. we are constantly running into CORS issue. Do let me know what other information you would need. btw without https and cloudflare, we dont see this issue? can you please help us?
    n
    • 2
    • 1
  • a

    aiji42

    04/08/2022, 4:34 AM
    The fact that supabase supports graphql has revolutionized it in my mind, thank you! I have confirmed the bug-like behavior, but I have not been able to determine if I am using the system incorrectly or if it is a bug, as similar reports were not reported in the pg_graphql repository. So let me inquire here first. When performing update mutation on an integer column, an error occurs if the value is passed as an argument; "column "xxxxx" is of type integer but expression is of type text" If the value is written directly into the query, no error occurs. Is this a known issue? Also, should I report this in the pg_graphql repository issues?
    n
    • 2
    • 1
  • s

    sang.dang

    04/08/2022, 4:59 AM
    Hi, does supabase have GraphQL good enough for production?
    n
    • 2
    • 3
  • j

    jaitaiwan

    04/08/2022, 5:51 AM
    Hey folks, I have a use case where I need the ability to create tokens for a user or resource which are scoped and have a custom expiry time. For example user A creates a token with no expiry that only allows "read" access (obviously the access is managed with a policy). Another example is that User A creates token with custom expiry with scope only to a particular resource. Now what I've described could mostly be done with functions, policies etc but what I'm really trying to get-at here is how I could use said tokens with gotrue for example? That way supabase-js library could be used by default?
    n
    • 2
    • 2
  • b

    Brian_090

    04/08/2022, 7:21 AM
    Hey, guys. Does anyone have any workaround for the issue 'remember me' checkbox while logging in ? Changing the persistSession after creating the supabase client? https://github.com/supabase/auth-elements/issues/7#issue-1110854102
    n
    c
    • 3
    • 6
  • m

    mellson

    04/08/2022, 9:32 AM
    Custom domain on Google verification screen
  • p

    productdevbook

    04/08/2022, 2:01 PM
    how to new add schema ?
    n
    • 2
    • 1
  • m

    mhaezaragoza

    04/08/2022, 3:31 PM
    what is the REST for
    signup
    ?
    n
    • 2
    • 4
  • m

    Muezz

    04/08/2022, 4:37 PM
    Are Functions and Stored Procedures the same thing?
    n
    s
    • 3
    • 24
1...254255256...316Latest