https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • r

    RB_Gaura

    08/16/2021, 11:49 PM
    add a RLS policy that only let's users whose user_id is in the posts row see those posts
  • r

    RB_Gaura

    08/16/2021, 11:49 PM
    or you can filter it out on the frontend
  • u

    user

    08/16/2021, 11:55 PM
    @User thanks for the reply! what would the
    Copy code
    select()
    look like? i have a policy set up rn for only updates but i can set one for viewing too
  • u

    user

    08/16/2021, 11:56 PM
    how do i get the user id to query the posts with? should i get it from auth.user() ?
  • a

    Ant

    08/17/2021, 12:29 AM
    love it
  • j

    jon.m

    08/17/2021, 1:25 AM
    @User yes, you would pull the authed users id with the supabase client - then you would do a simple select and add an .eq('user_id', user.id)
  • j

    jon.m

    08/17/2021, 1:25 AM
    and that's going to get you what you want
  • u

    user

    08/17/2021, 1:51 AM
    thank you sir
  • j

    jon.m

    08/17/2021, 2:08 AM
    you're welcome
  • r

    Reaver

    08/17/2021, 2:53 AM
    Hey all
  • r

    Reaver

    08/17/2021, 2:55 AM
    with supabase db, using the APi can we work with relationships also?
  • j

    jon.m

    08/17/2021, 3:38 AM
    You mean the client api?
  • j

    jon.m

    08/17/2021, 3:39 AM
    Yes, you can work with relationships.
  • j

    jon.m

    08/17/2021, 3:40 AM
    Here's an example from the docs using javascript:
    Copy code
    const { data, error } = await supabase
      .from('countries')
      .select(`
        name,
        cities (
          name
        )
      `)
  • m

    Marky

    08/17/2021, 4:13 AM
    I noticed I have storage requests

    https://i.imgur.com/8qeJFmi.png▾

    Yet I have no buckets and don't use storage
  • d

    Darkwebplayer

    08/17/2021, 6:24 AM
    Hey is supabase API down? can't access from my app or even from the website. Any idea when will it come ack
  • d

    Darkwebplayer

    08/17/2021, 6:30 AM
    please someone do reply , i have an app running in production which uses supabase as backend
  • c

    Camo

    08/17/2021, 6:58 AM
    ping?
  • c

    Camo

    08/17/2021, 7:03 AM
    @User everything seems to be working on my side
  • d

    Darkwebplayer

    08/17/2021, 7:10 AM
    i'm getting 'Error Connecting to API' from supabase site and my app request returns 'Fetch error ,
    Copy code
    type: 'system',
      errno: 'ECONNREFUSED',
      code: 'ECONNREFUSED'
  • c

    Camo

    08/17/2021, 7:11 AM
    well have you tried to ping the service?
  • c

    Camo

    08/17/2021, 7:11 AM
    do it local, and remote
  • c

    Camo

    08/17/2021, 7:11 AM
    and see where you at from there
  • d

    Darkwebplayer

    08/17/2021, 7:11 AM
    yeah, will try
  • n

    nyellin

    08/17/2021, 7:27 AM
    @User my supabase was down a few days ago and I fixed it by restarting the service (under settings in the control panel)
  • d

    Darkwebplayer

    08/17/2021, 7:30 AM
    thanks will try
  • d

    Darkwebplayer

    08/17/2021, 7:35 AM
    no luck
  • n

    nyellin

    08/17/2021, 7:45 AM
    😦
  • n

    nyellin

    08/17/2021, 7:45 AM
    @User you can also email beta@supabase.io
  • n

    nyellin

    08/17/2021, 7:46 AM
    I'm not part of the supabase team, so don't know if they're more responsive by email or here
1...798081...392Latest