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

    HorseShoe

    10/20/2021, 4:12 AM
    ??
  • o

    omenking

    10/20/2021, 1:11 PM
    @User I an organizing a Twitter Space to talk about Serverless Platform as a Service (SPaaS) like Supabase. I was hoping to connect with someone that does Dev Rel to see if I could get someone to represent Supabase in the online dicussion. If someone could send me a DM here in Discord I'd apperciate it
  • o

    omenking

    10/20/2021, 1:12 PM
    This is me: 👉 https://twitter.com/andrewbrown I'm known for free cloud certification videos courses
  • c

    copple

    10/20/2021, 2:22 PM
    Sounds cool @User ! What timezone? it can be any of - me, @User , @User , @User or possibly others depending on timing
  • o

    omenking

    10/20/2021, 2:23 PM
    I only need a single speaker but the rest can join. I'll DM you my form to figure your time preference
  • r

    Renan Ferreira

    10/20/2021, 4:22 PM
    Hello, is the rest API of Supabase down? We are getting many timeouts in production
  • e

    edgaras

    10/20/2021, 5:46 PM
    Hey, could someone please help me out to make a one-to-many relationship between two tables? I have 2 tables: jobs - id, - title - company_id companies - id, - name How do I query Jobs together with companies? (One company can have multiple jobs)
  • e

    edgaras

    10/20/2021, 5:47 PM
    I am trying this but it does not work:
    Copy code
    supabase
          .from('companies')
          .select(`id, name, jobs ( id, title)`)
  • e

    edgaras

    10/20/2021, 5:48 PM
    Getting an error:
    Copy code
    hint: "By following the 'details' key, disambiguate the request by changing the url to /origin?select=relationship(*) o…"
    
    message: "More than one relationship was found for companies and jobs"
  • d

    debabrata

    10/20/2021, 6:06 PM
    I think there's a problem with your query.. This should work:
    Copy code
    supabase
            .from('jobs')
            .select(`id, title, companies ( id, name )`)
  • d

    debabrata

    10/20/2021, 6:07 PM
    Make sure you have set company_id as a foreign key
  • e

    edgaras

    10/20/2021, 6:09 PM
    still same error ;/ works well without
    , companies (id, name)
    part. Maybe I did not set the foreign key correctly... The only thing I did, I added a relation from Jobs table to Companies: company_id → public.companies.id.
  • d

    debabrata

    10/20/2021, 6:19 PM
    The foreign key seems to have been set up correctly
  • d

    debabrata

    10/20/2021, 6:19 PM
    Unfortunately I'm not sure why you're getting an error :(
  • e

    edgaras

    10/20/2021, 6:20 PM
    I am new to this, but pulling my hair for 2 hours now....
  • e

    edgaras

    10/20/2021, 6:21 PM
    here is the code I am trying btw:
    Copy code
    js
    import { useState, useEffect } from 'react'
    import { supabase } from '../lib/initSupabase'
    
    export default function Index() {
    
      const [jobs, setJobs] = useState([])
    
      useEffect(() => {
        fetchJobs()
      }, [])
    
      async function fetchJobs() {
        let { data: jobsData, error } = await supabase
          .from('jobs')
          .select(`id, title, companies (id, name)`)
        if (error) console.log('error', error)
        else setJobs(jobsData)
      }
    
      return (
        <ul>
          <li>
            {jobs.map((job) => (
              <div key={job.id}>{job.title}</div>
            ))}
          </li>
        </ul>
      )
    }
  • p

    pamartin

    10/20/2021, 8:04 PM
    Hello everyone, I've just started playing with supabase, great product ! My first question is: how can I see for a table if the real time is activated or not ? Edit: found it in the docs: https://supabase.io/docs/guides/api#managing-realtime Thx
  • g

    garyaustin

    10/20/2021, 8:14 PM
    Edit: Ignore as misread question: In the UI it is under Authentication then Policies.
  • p

    pamartin

    10/20/2021, 8:24 PM
    I can see that RLS is activated but realtime ?
  • p

    pamartin

    10/20/2021, 8:25 PM
    The only way I've seen is to run
    alter publication supabase_realtime drop table table_test;
    and it'll tell me that there is nothing to drop ie. realtime is off
  • g

    garyaustin

    10/20/2021, 8:33 PM
    Sorry, read to quickly. Database Replication then Realtime is off the right. Seems different than when I set it up.
  • p

    pamartin

    10/20/2021, 8:40 PM
    More tricky question, how can I activate realtime outside of supabase UI ? I've tried
    alter publication supabase_realtime add table table_test;
    from a node client or by wrapping it in an RPC but I always get:
    must be owner of publication supabase_realtime
    s
    • 2
    • 10
  • s

    silentworks

    10/20/2021, 8:55 PM
    Enable realtime outside of Supabase UI
  • k

    kennethcassel

    10/20/2021, 8:58 PM
    does your migration approach handle storage changes? I think there's probably a way to do it by writing a custom script to diff changes against entries in storage across db's. Curious if anyone has done that yet
    s
    • 2
    • 16
  • j

    jonmeyers

    10/20/2021, 10:41 PM
    Get some of that sweet sweet #swag!! https://twitter.com/_dijonmusters/status/1450941750248415232?s=21
  • a

    Ant

    10/21/2021, 8:43 AM
    the sizes run slighty on the small side, so a US medium would probably need an L
  • h

    HarryET

    10/21/2021, 8:44 AM
    Oh really? I am a UK medium and the small from your sized looked like it would work. Would you recommend k just get the medium?
  • c

    copple

    10/21/2021, 9:01 AM
    5 in a row! ⭐ ⭐ ⭐ ⭐ https://twitter.com/kiwicopple/status/1451104569266671619
  • j

    Jaeden

    10/21/2021, 9:45 AM
    Does anyone have a good workflow on keeping your production and staging database sort of in sync? I find myself replicating a lot between them and there must be an easier way lol
    s
    • 2
    • 3
  • b

    Biondi Bagasta Wiko Putra

    10/21/2021, 10:23 AM
    #ASK Is it possible for filtering with
    Copy code
    .textSearch
    with multiple table ???? For example this is what i really want :
    Copy code
    dart
    var response = await this._supabase.from('publisher').select().textSearch('name', 'email', data).execute();
    So i can filter based on the
    Copy code
    name or email
    column.
1...120121122...392Latest