HorseShoe
10/20/2021, 4:12 AMomenking
10/20/2021, 1:11 PMomenking
10/20/2021, 1:12 PMcopple
10/20/2021, 2:22 PMomenking
10/20/2021, 2:23 PMRenan Ferreira
10/20/2021, 4:22 PMedgaras
10/20/2021, 5:46 PMedgaras
10/20/2021, 5:47 PMsupabase
.from('companies')
.select(`id, name, jobs ( id, title)`)
edgaras
10/20/2021, 5:48 PMhint: "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"
debabrata
10/20/2021, 6:06 PMsupabase
.from('jobs')
.select(`id, title, companies ( id, name )`)
debabrata
10/20/2021, 6:07 PMedgaras
10/20/2021, 6:09 PM, 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.debabrata
10/20/2021, 6:19 PMdebabrata
10/20/2021, 6:19 PMedgaras
10/20/2021, 6:20 PMedgaras
10/20/2021, 6:21 PMjs
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>
)
}
pamartin
10/20/2021, 8:04 PMgaryaustin
10/20/2021, 8:14 PMpamartin
10/20/2021, 8:24 PMpamartin
10/20/2021, 8:25 PMalter publication supabase_realtime drop table table_test;
and it'll tell me that there is nothing to drop ie. realtime is offgaryaustin
10/20/2021, 8:33 PMpamartin
10/20/2021, 8:40 PMalter 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
silentworks
10/20/2021, 8:55 PMkennethcassel
10/20/2021, 8:58 PMjonmeyers
10/20/2021, 10:41 PMAnt
10/21/2021, 8:43 AMHarryET
10/21/2021, 8:44 AMcopple
10/21/2021, 9:01 AMJaeden
10/21/2021, 9:45 AMBiondi Bagasta Wiko Putra
10/21/2021, 10:23 AM.textSearch
with multiple table ????
For example this is what i really want :
dart
var response = await this._supabase.from('publisher').select().textSearch('name', 'email', data).execute();
So i can filter based on the name or email
column.