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

    Audrow

    04/08/2022, 4:53 PM
    Hey, I'm trying to develop locally with Supabase. What is the good way of setting up the same tables and policies on my local machine and on Supabase's site? I assume from the supabase CLI that link might help with this, but I'm not able to find much documentation.
    n
    t
    • 3
    • 6
  • m

    magicbyt3

    04/08/2022, 5:32 PM
    Hey all, I am wondering if it is possible to have 2 unqiue fields combined, like I want to have userid unique AND postid unique. How would that work?
    n
    t
    • 3
    • 5
  • r

    robin

    04/08/2022, 6:24 PM
    hey all, I was wondering what's the best way to restrict update permissions to only some columns in a table? I've run a
    GRANT
    command in a SQL editor, following the suggestions here https://github.com/supabase/supabase/discussions/346 but then there's no way that I can see to review the saved permissions. What happens if I rename a column for instance?
    n
    g
    • 3
    • 4
  • e

    Einar Persson

    04/08/2022, 6:47 PM
    Hi! I am new to Supabase and have watching some tutorials. But my use case is a bit different *I only want me as an admin to be able to add users, manually * Is this achieved by the following? - Set
    Disable Signup
    to true - Invite users in the Supabase UI: Authentication/Users/Invite
    n
    • 2
    • 3
  • r

    robin

    04/08/2022, 8:16 PM
    What's the difference between the
    contains
    and
    containedBy
    filters? The documentation doesn't say what the examples would return, so it's not super helpful 😦
    n
    g
    • 3
    • 10
  • i

    ilbert

    04/08/2022, 8:28 PM
    My hosted supabase instance got restarted (idk why) and then I can't no more see the `pg_graphql`'s
    graphql
    endpoint
    n
    f
    +2
    • 5
    • 15
  • e

    elliott

    04/08/2022, 9:35 PM
    Is it possible to authenticate and make calls to supabase within a chrome extension? Trying to make an extension that accompanies my web app, and is populated by supabase
    n
    s
    g
    • 4
    • 6
  • c

    CipherCode

    04/08/2022, 11:12 PM
    i love supabase ❤️
    n
    • 2
    • 3
  • d

    Duckstroyer

    04/09/2022, 12:28 AM
    So when I pull down my database for prisma, it doesn't pull down the users table. So when I try to reference a user id in my prisma, I don't have the ability to do so because prisma doesn't support foreign keys. How do you guys get around this with using prisma and supabase?
    n
    • 2
    • 2
  • b

    bill92

    04/09/2022, 1:06 AM
    Hello Is there a proper way to check if a user exists on the database when doing a sign up?
    n
    g
    • 3
    • 3
  • a

    akito

    04/09/2022, 1:12 AM
    Does anyone have suggestions to prevent malicious database modification from users? I'm designing an application where basically all the runtime will be through Edge Functions, but don't want users to authenticate themselves using their bearer token for direct database access (even with RLS). Would it be best to proxy all user data through system-level database access within the function and give users zero access by themselves?
    n
    t
    • 3
    • 6
  • p

    poutingemoji

    04/09/2022, 2:01 AM
    is there a way to generate shorter uuids? rn im using uuid_generate_v4() but id like something thats preferably 5 symbols long
    n
    f
    • 3
    • 20
  • n

    navandstokes

    04/09/2022, 6:39 AM
    Is it possible to get function hooks on old projects? All of our projects are using http right now which is less than ideal
    n
    • 2
    • 1
  • a

    Adi

    04/09/2022, 8:01 AM
    Hi devs, just curious to know in gotrue what is difference between invite and magiclink both send invite only right? https://github.com/supabase/gotrue#post-admingenerate_link
    n
    • 2
    • 1
  • n

    Needle

    04/09/2022, 9:17 AM
    Hello @busch! 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.
  • s

    STILLWATER;

    04/09/2022, 11:40 AM
    How can i select only certain fields to be returned in data after an insert operation using supabase db apis
    n
    d
    • 3
    • 4
  • j

    Jonathan H

    04/09/2022, 12:24 PM
    Hi, I feel like I must be missing something obvious here, but anyway. Currently trying to evaluate Supabase for a project I need to get moving on (the other option I'm looking at is Parse). I've set up self hosting using Docker (self hosting is important for this project), and I see "Default Organization" and "Default Project"... I assume it is possible to set up new Organizations and Projects, but I can't see how in the interface or in the documentation and so far googling hasn't given me the answer either.
    n
    n
    g
    • 4
    • 8
  • o

    overra

    04/09/2022, 3:49 PM
    Howdy! I understand that the GraphQL API is in beta but I was curious if we can use it in local development. I've tried the
    /graphql/v1/
    endpoint on my local API after enabling and rebuilding the graph but I get this response when I try to query anything
    Copy code
    {
      "message": "The schema must be one of the following: public, storage"
    }
    I mostly just want to make sure I'm not missing something obvious. 🙂
    n
    f
    • 3
    • 4
  • a

    Amos

    04/09/2022, 6:57 PM
    Hey, I want to sync my db with data from a 3rd party API and was wondering what you guys would recommend? My idea was either: 1. create a supabase function that fetches the data, then call it with
    pg_cron
    and
    pgsql-http
    2. use
    pg_cron
    with
    pgsql-http
    and fetch the data from the database directly Or if you have any other ideas lmk 😛
    n
    • 2
    • 1
  • l

    Lika3llobo

    04/09/2022, 7:54 PM
    @User I wanna report a bug: Using pg_graphql and Apollo studio, there is no way to make
    Update<db>Collection{}
    worq. Always get this error msg:
    Copy code
    json
    {
      "data": null,
      "errors": [
        {
          "message": "missing FROM-clause entry for table \"f\""
        }
      ]
    }
    This is my mutation and variables:
    Copy code
    json
    mutation UpdateCommentCollection($set: CommentUpdateInput!, $filter: CommentFilter) {
      updateCommentCollection(set: $set, filter: $filter) {
        records {
          id
          created_at
          text
          user_id
          nft_id
        }
      }
    }
    
    {
      "set": {"text": "Bad one!"},
      "filter": {
        "id": {
          "eq": 3
        }
      }
    }
    n
    g
    s
    • 4
    • 7
  • t

    tavin

    04/09/2022, 11:16 PM
    I'm facing an issue where INSERTs and UPDATEs are not replicated (realtime) but DELETEs are?
    n
    g
    • 3
    • 41
  • i

    Ize_Cubz

    04/10/2022, 1:06 AM
    If I want to use an already running instance of PostgreSQL on the system would just adding the host to the docker compose and changing the relevant URLs work or is there more I have to configure inside of the database?
    n
    • 2
    • 4
  • l

    laubonghaudoi

    04/10/2022, 1:51 AM
    Does supabase have any example for storing tree structures? I am looking if there is any implementation like this in Django so that I don't need to reinvent the wheel https://pypi.org/project/django-treebeard/
    n
    g
    s
    • 4
    • 7
  • i

    Infinil

    04/10/2022, 6:48 AM
    I am really new to back end stuff like functions etc .. so not sure if it's possible to run python etc scripts with edge functions
    n
    t
    • 3
    • 9
  • w

    wiesson

    04/10/2022, 7:59 AM
    Anyone using supabase with astro.build?
    Copy code
    09:58:24 AM [build] Building for SSR...
    [vite:resolve] Cannot bundle Node.js built-in "stream" imported from "node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.mjs". Consider disabling ssr.noExternal or remove the built-in dependency.
     error   Cannot bundle Node.js built-in "stream" imported from "node_modules/.pnpm/node-fetch@2.6.7/node_modules/node-fetch/lib/index.mjs". Consider disabling ssr.noExternal or remove the built-in dependency.
    Astro provides a global version of fetch, but I'm not sure how to tell Vite to use that one instead of 2.6.7
    n
    • 2
    • 2
  • n

    Needle

    04/10/2022, 11:34 AM
    Hello @martinemmert! 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
    • 1
  • p

    philbookst

    04/10/2022, 1:25 PM
    hey guys, I'm trying to do a text search on my database but I'm not getting the results I need I have a "Post" with a title colum and I store german words in there say I have this title "Ernährung bei einem hohen Cholesterinwert" I tried this statement right here
    Copy code
    sql
    select * 
    from "Post"
    where 
      to_tsvector('german', title) 
      @@ to_tsquery('german', 'chol');
    but I'm not getting any results, any idea why?
    n
    g
    • 3
    • 5
  • c

    Call in

    04/10/2022, 2:18 PM
    Hello, Is it possible to change region once you've started a project? Can you redeploy somewhere else or do you have to restart all your project?
    n
    g
    s
    • 4
    • 5
  • n

    Nerc

    04/10/2022, 5:14 PM
    Hey, I'm tryin to setup discord authentication, but unfortunately whenever I'm changing a value in the authentication settings (or pressing save after changing an input box) the following message appears and the changes won't get saved:
    Copy code
    Update config failed: An error has occured: Failed to fetch
    n
    o
    g
    • 4
    • 7
  • a

    Ape R Us

    04/10/2022, 11:53 PM
    hey guys, question not sure why but if i have RLS on and i fetch data from svelte endpoint its only working if RLS is off however if i fetch the data from my store, it works, Im not sure if my authentication is the issue that is causing it
    n
    f
    g
    • 4
    • 22
1...255256257...316Latest