jon.m
08/26/2021, 1:19 AMScott P
08/26/2021, 1:32 AMcountries
which have both computers
and minerals
specified in their main_exports
columnjon.m
08/26/2021, 1:33 AMjon.m
08/26/2021, 1:34 AMjon.m
08/26/2021, 1:42 AMjason-lynx
08/26/2021, 2:16 AMjason-lynx
08/26/2021, 2:16 AM.contains
or .containedBy
might be what you need, depending on which direction the subsetting should bejon.m
08/26/2021, 2:36 AMjason-lynx
08/26/2021, 2:55 AM['apples', 'oranges']
is your provided array, then https://supabase.io/docs/reference/javascript/containedby might do it?
const { data, error } = await supabase
.from('posts')
.select()
.containedBy('post_tags', ['apples', 'oranges'])
which gives posts that only have 'apples' and/or 'oranges' as a tagjon.m
08/26/2021, 3:33 AMjon.m
08/26/2021, 3:33 AMjon.m
08/26/2021, 4:02 AMdoctorRuediger
08/26/2021, 7:01 AMbinajmen
08/26/2021, 8:08 AMjs
const { data, error } = await supabase
.from('countries')
.select(`
name,
cities (
name
)
`)
LuddensEkko
08/26/2021, 8:16 AMPoypoypoy
08/26/2021, 9:12 AMPoypoypoy
08/26/2021, 9:16 AMdoctorRuediger
08/26/2021, 1:03 PMdennis
08/26/2021, 1:44 PMAzura
08/26/2021, 1:57 PMAzura
08/26/2021, 1:58 PMJulián
08/26/2021, 2:09 PMMike92988
08/26/2021, 2:18 PMAzura
08/26/2021, 2:20 PMs u s h i
08/26/2021, 2:39 PMs u s h i
08/26/2021, 2:43 PMkennethcassel
08/26/2021, 2:54 PMsilentworks
08/26/2021, 2:56 PMstorage.objects
table before insert, I haven't tested this myself but it should be possible.kennethcassel
08/26/2021, 2:58 PMsilentworks
08/26/2021, 3:00 PMstorage.objects
table happen before the upload is completed or after.