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

    willm

    03/24/2022, 4:06 PM
    what is the equivalent of
    .single()
    for curl requests?
    n
    s
    • 3
    • 4
  • d

    daviscup

    03/24/2022, 4:18 PM
    somebody figured out a good and expandable query function like this but for other queries like gt() etc. as well? const getCollection = (c, q, eq) => { await supabase .from(c) .select(q) .eq(eq) }
    n
    s
    +2
    • 5
    • 7
  • d

    drilkmops

    03/24/2022, 8:39 PM
    Is there a way to stop having
    unknown[]
    coming back from the db? I'd rather have like
    string[]
    or
    number[]
    . Seems like the rest api url doesn't like those? Getting them from here:
    https://myurl.supabase.co/rest/v1/?
    n
    g
    • 3
    • 6
  • v

    VฮžLO

    03/24/2022, 11:06 PM
    What is fastest way to migrate new tables from one supabase to another? I've got my pgAdmin UI up and I am tempted to copy the generated CREATE sql from the source database and execute it on the target database. Are there any problems with this?
    n
    o
    • 3
    • 7
  • a

    Alan

    03/25/2022, 12:08 AM
    Hello everyone, does supabase work with php?
    n
    g
    • 3
    • 5
  • n

    Needle

    03/25/2022, 2:31 AM
    Hello ! This thread has been automatically created from your message in 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.
  • n

    Needle

    03/25/2022, 12:20 PM
    Hello ! This thread has been automatically created from your message in 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.
  • p

    Pr.Kishan

    03/25/2022, 12:21 PM
    Where can i find "Supabase Hooks" ?
    n
    • 2
    • 2
  • e

    elhe26

    03/25/2022, 2:11 PM
    Hi all. I'm using rpc to insert values to a table. After I execute the function, I'm getting this error:
    {"code":"42P01","hint":null,"details":null}
    n
    s
    • 3
    • 35
  • j

    justcode123

    03/25/2022, 2:37 PM
    I have a Nextjs + PostgreSQL project, that I started to use Prisma with... Does Supabase work well with a existing PostgreSQL?
    n
    l
    • 3
    • 4
  • u

    4Lajf

    03/25/2022, 3:19 PM
    Hi, i need to select all data from the DB and then rank it by points (number) naturally I'd do
    Copy code
    const { data, error } = await supabase.from('some_table').select('*');
    but what after that? Also can I run SQL commands with a SQL syntax from my application?
    n
    d
    s
    • 4
    • 7
  • f

    fernandolguevara

    03/25/2022, 7:47 PM
    I'm trying to execute.
    supabase start
    but i got this error
    Error: Error starting database: ERROR:  schema "graphql_public" does not exist
    n
    g
    • 3
    • 9
  • f

    fmontanari

    03/25/2022, 7:56 PM
    Hi! I've been trying to get the "remember me" functionality for my site working and I'm having trouble with the access/refresh token setup. So, let's say I have a navigation guard for some routes (like
    /user/profile
    ) and want to check if the current user is authenticated:
    Copy code
    js
    async function isAuthenticated() {
       // User has session?
       if(supabase.auth.session == null) {
          // We don't, check if there's an old session in storage (local/session Storage)
          const oldSession = getStorageSession();
          // Has it expired yet?
          if (oldSession.expiresAt >= Date.now()) {
            loginWithRefreshToken(); 
            return true;
          }
          else {
            // setAuth with old session (does Supabase handle this automatically?)
            await supabase.auth.setAuth(oldSession.access_token);
            return true;
          }
       }
       else {
        // We have a session, is it expired though?
        if(supabase.auth.session.expiresAt >= Date.now() {
          loginWithRefreshToken();
          return true;
        }
       }
      // On error logging in with refresh token, returns false.
    }
    However, I receive "Invalid access token" after trying to login with the refresh token... Is there any step I'm missing, or is there any misunderstandings with how I should handle authentication with Supabase Auth?
    n
    • 2
    • 2
  • t

    theuknowner

    03/25/2022, 7:56 PM
    Hello, I need clarification about GDPR. My app is based in EU and I have picked Frankfurt Region for my instance. Is Supabase GDPR compliant? If not, is it "safe" to use it with EU data? This is very critical for most apps that are based in EU.
    n
    s
    • 3
    • 4
  • j

    justcode123

    03/25/2022, 9:20 PM
    So, on one Mac app.supabase.io loads.... but on another computer that site DOES NOT load, itโ€™s the site, but a blank black screen
    n
    • 2
    • 1
  • s

    swiss

    03/25/2022, 9:36 PM
    Hi, I can't create a 2nd project in my supabase account despite only having 1 organization and 1 project. What should I do?
    n
    o
    g
    • 4
    • 7
  • b

    Bryan K.

    03/25/2022, 10:02 PM
    Anyone have advice on the best setup for multiple authenticated users having access to the same row when using RLS on a table? Do you just store an array of UUIDs in the record and then test to see if the array contains the UUID on request?
    n
    g
    • 3
    • 10
  • r

    rockinbinbin

    03/25/2022, 10:37 PM
    Hey guys, I've been trying to run this code in my SQL editor and haven't gotten updates on my table to work. Can anyone help point out what's wrong?
    Copy code
    CREATE OR REPLACE FUNCTION public.test_fn(row_id bigint) RETURNS void AS $$
        UPDATE restaurants SET name = 'test'
        WHERE row_id = 36;
    $$ language sql volatile;
    n
    s
    g
    • 4
    • 47
  • n

    Needle

    03/26/2022, 4:46 AM
    Hello ! This thread has been automatically created from your message in 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.
  • y

    yaaang

    03/26/2022, 5:22 AM
    Is there any documentation on "supabase db branch" CLI commands?
    n
    • 2
    • 1
  • s

    sayantan.k

    03/26/2022, 7:06 AM
    Hi guys, I'm using Supabase for the first time and I'm working on an API using Vercel's Serverless functions. I wanted to use Connection Pooling for this, and I was wondering what are the steps for it? I can see that it's enabled in my Database settings, but I only really used
    createClient
    with my
    SUPABASE_KEY
    and
    SUPABASE_URL
    . So is connection pooling handled under the hood by Supabase? Or am I missing something?
    n
    a
    g
    • 4
    • 7
  • a

    Avin

    03/26/2022, 11:31 AM
    Are there any examples of deploying supabase on fly.io?
    n
    s
    • 3
    • 4
  • n

    Needle

    03/26/2022, 11:39 AM
    Hello @Rihito! 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.
    r
    • 2
    • 3
  • l

    limzee

    03/26/2022, 11:45 AM
    Should i use UUID or INT8 for id?
    n
    s
    • 3
    • 3
  • t

    theuknowner

    03/26/2022, 1:28 PM
    How can I use int32? The maximum int is int8 which can store a max length of 8
    n
    a
    s
    • 4
    • 22
  • b

    Baoshan

    03/26/2022, 2:26 PM
    How to work on a database other than the default one (named
    postgres
    )? The
    CREATE DATABASE
    command works. But the Table editor seems hard-coded to the default
    postgres
    database. Extensions can not be enabled on the created database. Did I miss something?
    n
    s
    l
    • 4
    • 8
  • m

    Milou

    03/26/2022, 6:47 PM
    Hi! Short question: Is there any way to get more typesafe results from the supabase service? I'm trying to build an application in angular and right now I need to check in my components if all the fields from a row are present, i.e.
    n
    s
    • 3
    • 8
  • d

    DanMossa

    03/27/2022, 12:06 AM
    How can I debug why my custom SMTP email isn't working?
    n
    • 2
    • 6
  • t

    tandyman

    03/27/2022, 1:47 AM
    I set up a basic RLS policy on a new table I created, called client_profiles. The policy is for select, and the rule is simple: (uid() = agent_id), yet, I'm getting no items back now. I guess more my question is how can I troubleshoot to see WHY rls failed or "chose to protect"...is there anywhere I can see why maybe the ids aren't matching, etc?
    n
    g
    • 3
    • 39
  • a

    AmusedGrape

    03/27/2022, 1:53 AM
    whats the best (or easiest) way to sync / continuously update OAuth avatars (in my case, Discord) with Supabase's auth?
    n
    • 2
    • 1
1...247248249...316Latest