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

    alxndr

    03/13/2022, 6:40 PM
    Hey all! I'm looking for a way to run a search against a jsonb column's values only, and not the keys. So for example given a column called
    info
    with data like:
    { topic: "postgres" }
    , I'd like for this row to be returned if the provided search value string contains
    "postgres"
    but not if it includes
    "topic"
    I was able to create a new column on the table that is a concatenation of other columns to run text search against that generated column (using the docs https://supabase.com/docs/guides/database/full-text-search#searchable-columns), but so far haven't been able to figure out the syntax to do this with a jsonb column for the values only, I get the whole stringified object in there, which is ok but not ideal as some of the keys are fairly generic and shouldn't match on a text search. Thanks in advance!
    n
    g
    • 3
    • 3
  • a

    Aghilan

    03/13/2022, 8:01 PM
    Hey would anybody be williing to hop in a vc for about 2 mins, I'm having some difficulty understanding how Supabase works and how I can send and receive data from it. I'm new to Web Dev so I will ask some dumb questions.
    n
    d
    o
    • 4
    • 71
  • s

    swiss

    03/14/2022, 2:12 AM
    How can I query the "many" entities in a one-to-many relationship but only retrieve ones where the parent (the "one" in one-to-many) has a column with a certain value? My database has a sessions table and actions table, where each action can have many sessions but each session can only have one action. I'd like to query for all sessions where their related action has a "goal" column with a certain value. How do I go about this?
    n
    • 2
    • 1
  • d

    Deleted User

    03/14/2022, 5:15 AM
    Hi, I am new to React Native Development and I was trying to integrate supabase with Expo, during development of auth system, I got an error ->
    undefined is not an object (evaluation 'this.localStorage.getItem')
    How to remove this issue?
    n
    s
    • 3
    • 5
  • k

    Kellen Mace

    03/14/2022, 5:39 AM
    Hi, all! 👋 Question about getting Realtime to work for a table that has RLS policies enabled – In my app, Stripe fires off a webhook to my
    /api/stripe-webhooks
    endpoint, then I make an update to my
    profiles
    table using the data I receive. Even though I have Realtime turned on for that table and my client-side app has subscribed to receive `UPDATE`s, no Realtime events are received. This is because I have row-level security (RLS) enabled for the
    profiles
    table, and when my
    /api/stripe-webhooks
    endpoint handler function is called, no user is authenticated, so the RLS checks fail. How can I keep RLS activated to lock down access to my
    profiles
    table, but still receive Realtime updates in my client-side app when the current user's row in the
    profiles
    table gets updated? More Details: - I'm using username/password auth. - The RLS policy on my
    profiles
    table is
    uid() = id
    for all CRUD operations. - I'm using SvelteKit the supabase-js client the for the client-side app. Thanks in advance for any help you can give! 🙌
    n
    g
    • 3
    • 36
  • d

    Deleted User

    03/14/2022, 5:52 AM
    Hello, I am trying to build an app using expo and supabase and in auth part, I got an error ->
    [Unhandled promise rejection: TypeError: undefined is not an object (evaluating '_supabase.supabase.auth')]
    Kindly help me..
    n
    o
    • 3
    • 4
  • t

    tulusibrahim

    03/14/2022, 6:33 AM
    hi.. so i just updated my images row with empty array in supabase with no .match() method.. is there a way for me to get the image data back? thanks...
    n
    g
    • 3
    • 3
  • x

    xeon06

    03/14/2022, 7:48 AM
    Hey folks! Is the OpenAPI schema available in the local CLI version? I'm trying to look at http://localhost:54321/v1/rest but just getting a
    "no Route matched with those values"
    n
    • 2
    • 1
  • c

    CaptainDaylight

    03/14/2022, 3:57 PM
    I'm having a CORS issue when I setup the Next.js Quickstart. Is anyone else getting
    Referrer Policy: strict-origin-when-cross-origin
    when they try to make a request locally? Here's a link to more details on github https://github.com/supabase/supabase/discussions/5906
    n
    • 2
    • 1
  • c

    cb

    03/14/2022, 5:09 PM
    Hello, has anyone got the python realtime library to work? It will not work for me regardless of the channel name I use. Inserting records into the web UI and trying to capture them from the listening websocket. It does connect and shows in the Supabase dashbord
    n
    g
    • 3
    • 10
  • d

    davocado

    03/14/2022, 5:57 PM
    Hello, I can't find out how to replicate a left join in supabase js cli. some postgresql query like:
    Copy code
    select s.id, s.status, u.id, u.firstname, u.lastname
      from subscriptions as s
      left join users as u on s.user_id = u.id
      where u.firstname = 'John';
    will only return subscriptions of users called 'John'. but with:
    Copy code
    supabaseClientCli
            .from('subscriptions')
            .select('id, status, user:users(id, firstname, lastname)')
            .eq('user.firstname', 'John')
    I get all subscriptions, with
    user: null
    if
    user.firstname
    isn't John... help appreciated!
    n
    • 2
    • 1
  • z

    zvictor

    03/14/2022, 7:51 PM
    Does anybody know how to get a JSON Web Key Secret URI form Supabase? (JWKs)
    n
    o
    • 3
    • 4
  • z

    zvictor

    03/14/2022, 7:51 PM
    https://github.com/supabase/supabase/discussions/5911
    n
    o
    • 3
    • 6
  • a

    AmusedGrape

    03/14/2022, 8:57 PM
    is there any reason that the Socket.IO Postgres Adapter wouldn't work with supabase? https://socket.io/docs/v4/postgres-adapter/
    n
    • 2
    • 1
  • r

    rafindie

    03/14/2022, 11:59 PM
    Hello, is there anyone having this issue? After signing in to the web application the screen shrink if it is opened through phone browser. I'm using next and Chakra ui by the way. How do I fix it? Everything seems fine in my code.
    n
    • 2
    • 1
  • o

    owonwo

    03/15/2022, 1:46 AM
    Hello, please i'm having issues setting up the Supabase local emulator for testing. Can anyone help me out here?
    n
    o
    g
    • 4
    • 11
  • s

    shikhar

    03/15/2022, 12:09 PM
    Hi All, we are planning to migrate from Firebase to Supabase, we don't have much data but have good amount of firebase functions.
    n
    o
    • 3
    • 6
  • h

    Ho0ony

    03/15/2022, 4:46 PM
    Hello, I'm trying to sign-in using discord oauth. I checked to signup in Authentication>Users. but 401 error returned in frontend. what should I look at ?
    n
    d
    • 3
    • 4
  • k

    klufkin

    03/16/2022, 2:51 AM
    Hi ,I'm trying to run a local instance of supabase using the cli. Following the instructions and using the API url referenced in the local studio
    http://supabase_kong_<project_dir_name>:8000
    I am getting the following error when making a call with the supabase js client,
    net::ERR_NAME_NOT_RESOLVED
    . What is the appropriate host name for the local dev supabase url ? Anyone have any ideas as to why I might be seeing this error? Note, I'm running all this on a mac.
    n
    s
    • 3
    • 5
  • k

    Kellen Mace

    03/16/2022, 4:22 AM
    Is there an easy way to get the query string params sent to a SvelteKit endpoint? Looks like I can get the full URL as shown below, but I don't see an easy way to get the query string params.
    Copy code
    ts
    export async function post(event: RequestEvent): Promise<RequestHandlerOutput> {
      console.log(event.request.url);
    }
    Example: If the request is sent to
    http://localhost:3000/api/my-endpoint?test=abc123
    , I want to access the value of
    test
    , which would be
    abc123
    . Thanks for any help you can give!
    n
    l
    • 3
    • 7
  • d

    drilkmops

    03/16/2022, 4:24 AM
    hey y'all wondering if theres a way to get the union of types in these tables from the generated types. Have a call that gets these rooms, then gets the users that have the roomId as a key relation
    Copy code
    id,
    slug,
    params,
    players:users(id, publicAddress, name)
    n
    l
    • 3
    • 8
  • s

    Silen

    03/16/2022, 6:44 AM
    Hello! I migrated from staging to main 3 days ago and accidentally dropped all of the original rows. Is there a backup that I can access or any way to recover the data? Much appreciated!
    n
    s
    • 3
    • 3
  • e

    elliott

    03/16/2022, 8:30 AM
    Does anyone know if it is possible to set an rpc query up for subscription, so that the results of the query are automatically refreshed on the page?
    n
    g
    • 3
    • 3
  • p

    patcito

    03/16/2022, 10:27 AM
    hey, some basic queries are returning null here, is there something wrong?
    n
    o
    • 3
    • 3
  • n

    NinjaNuur

    03/16/2022, 11:31 AM
    Inserts into my table have stopped working, I am now getting
    Copy code
    URL using bad or illegal format or missing URL
    anyone know what it could be?
    n
    s
    • 3
    • 20
  • d

    d33pu

    03/16/2022, 1:06 PM
    It seems like supabase has issues on Swift side. Anyone know how to fix this?
    n
    • 2
    • 4
  • n

    Needle

    03/16/2022, 2:22 PM
    Hello @xavier! 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.
    x
    • 2
    • 3
  • n

    NinjaNuur

    03/16/2022, 7:49 PM
    Hey, I'm trying to update my public user table whenever the auth table email changes This is what someone else has tried but doesnt work. Anyone have any ideas? https://github.com/supabase/supabase/discussions/5421
    n
    g
    • 3
    • 4
  • n

    Needle

    03/16/2022, 9:19 PM
    Hello @garyaustin! 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.
  • v

    Voko2255

    03/16/2022, 9:21 PM
    Hi can I connect supabase with redis?
    n
    • 2
    • 1
1...243244245...316Latest