silentworks
10/05/2021, 8:17 PMjavorszky
10/06/2021, 7:25 PMsupabase.from('table').select( ... )...
how do I specify what tables I want to select from, what columns they're joined by, whether it's an inner or outer join. The docs are somewhat confusing herejavorszky
10/06/2021, 8:09 PMScott P
10/06/2021, 9:08 PMjavorszky
10/06/2021, 9:09 PMjavorszky
10/06/2021, 9:09 PMgawlk
10/07/2021, 7:36 PMSELECT urls.id, urls.name, array_agg(tags) as tags
from urls
join urls_tags on urls.id = urls_tags.url_id
join tags on tags.id = urls_tags.tag_id
group by urls.id
To a supabase query ?
I came up with that but itβs not complete:
await db.from(`urls_tags`).select(`urls:url_id ( id, name ), tags:tag_id ( id, name )`)
gawlk
10/07/2021, 7:40 PMsilentworks
10/07/2021, 9:05 PMNull
10/07/2021, 10:41 PMjs
const image = useRef()
const file = image.current.files[0];
const { data, error } = await supabase.storage.from("image-posts").upload(file, {
cacheControl: "3600",
upsert: false,
});
if (error) alert(error);
I cant seem to upload an image to a storage bucket, i get the error "[object Object]".
And the image variable reference is being used on an <input type="file"/>
.seufernandez
10/07/2021, 10:45 PMgaryaustin
10/07/2021, 10:52 PMseufernandez
10/07/2021, 10:53 PMNull
10/07/2021, 10:55 PMseufernandez
10/07/2021, 11:04 PMdanestves
10/08/2021, 1:23 AMdanestves
10/08/2021, 1:31 AMERROR: column \"student:basic\" does not exist (SQLSTATE 42703)"
how can i fix that?jason-lynx
10/08/2021, 2:07 AMjason-lynx
10/08/2021, 2:08 AMdanestves
10/08/2021, 3:27 AMgawlk
10/08/2021, 8:00 AMgawlk
10/08/2021, 8:02 AMYelloJello
10/08/2021, 10:07 AMgawlk
10/08/2021, 11:01 AMYelloJello
10/08/2021, 11:44 AMgawlk
10/08/2021, 11:48 AMAdnane
10/08/2021, 3:59 PMScott P
10/08/2021, 4:53 PMAndy | Spillhosting.no
10/08/2021, 7:02 PMtype: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT'
Andy | Spillhosting.no
10/08/2021, 7:12 PM