Dembe
06/10/2022, 1:28 PMexport async function getStaticProps() {
let { data } = await supabaseAdmin.storage.from("gallery").select("*");
return {
props: {
images: data,
},
};
}
This doesnt work.Shoki
06/10/2022, 1:49 PMLesourdingo
06/10/2022, 2:08 PMDembe
06/10/2022, 2:39 PMexport async function getStaticProps() {
const { data, error } = await supabaseAdmin.storage
.from("gallery")
.list("categories/sport", {
limit: 100,
offset: 0,
});
return {
props: {
images: data,
},
};
}
in this code in sport folder i have two sub folders, football and golf with images in those subfolder. how could I retrive all the images from each subfolder into categories/sport? so when i go to sport i want to retrive all the images from sports subfolders images if you understand me! đekko
06/10/2022, 3:25 PMBryan K.
06/10/2022, 5:41 PMKiwi
06/10/2022, 6:13 PMBryan K.
06/10/2022, 9:35 PMJenaro Calvino
06/10/2022, 11:03 PMcoinmaster47
06/11/2022, 2:11 AMBig Bird
06/11/2022, 7:38 AMconsole.log('getOneJobFromDb', jobAddress)
let { data, error } = await supabase
.from('jobs')
.select('*')
.ilike('address', jobAddress) // using ilike to manage case-insensitive search
if (error) {console.log('eerrrororor', error)}
console.log('DATA',data)
I expect to receive ONE hit. Because when I copy paste the value of jobAddress
into the filter in the table exploration of app.supabase.com, it yields the expected result:<Ocean />
06/11/2022, 9:08 AMRickert
06/11/2022, 10:25 AMRickert
06/11/2022, 11:28 AMDesertRodent
06/11/2022, 1:14 PMHaus Of Alejandro
06/11/2022, 3:46 PMNiclas
06/11/2022, 4:38 PMMike_
06/11/2022, 5:45 PMJosh Adams
06/11/2022, 5:50 PMGubo
06/11/2022, 7:30 PMDembe
06/11/2022, 7:44 PMconst { data, error } = await supabaseAdmin.storage
.from("gallery")
.list("categories/sport", {
limit: 100,
offset: 0,
});
Wiht this i just get back the folder, but not the images or subfolder.
Is this possible?Josh Adams
06/11/2022, 8:33 PMjar
06/11/2022, 9:25 PMHaus Of Alejandro
06/11/2022, 11:03 PMowyah
06/12/2022, 1:57 AMBicijay
06/12/2022, 2:09 AMjar
06/12/2022, 3:52 AMselect publicURL from storage.objects where id = '...'
something like this maybe. But i dont see a url in that so maybe something elseBorisdm
06/12/2022, 5:30 AMTomasz SzczuciĆski
06/12/2022, 1:33 PMnew
in function triggered by on delete trigger, it's not working properly. Thanks for help đBig Bird
06/12/2022, 1:40 PMtalents
based on data from proposals
table in this query? Like I only want rows from talents
if if a match between talents.id
and proposals.talent_id
let { data, error } = await supabase
.from('jobs')
.select(`*, proposals(*), talents(*)`)
.ilike('address', jobAddress)