zaheeratwork
07/25/2022, 6:54 PMnull
when I try to select. I have driver_locations
table which has column driver
which references id
column of drivers
table. Not sure what I am doing wrong?garyaustin
07/25/2022, 7:04 PMhoesmean
07/25/2022, 11:32 PMReact noob
07/26/2022, 12:34 AMts
export const getStaticProps: GetStaticProps = async (context) => {
let url=""
const {data,error} = await supabase.storage
.from("hiking-picture")
.download("public/1658501487135-images.jpeg")
if(data){
url = URL.createObjectURL(data)
}
return {
props: {
x:url
},
};
};
stukennedy
07/26/2022, 9:47 AM.textSearch()
using a partial match? e.g. "J" would return all records where the search column starts with a "J"jaitaiwan
07/26/2022, 9:54 AMlooni
07/26/2022, 2:48 PMlooni
07/26/2022, 2:49 PMlooni
07/26/2022, 2:49 PMgaryaustin
07/26/2022, 2:55 PMlooni
07/26/2022, 2:58 PMlooni
07/26/2022, 2:58 PMgaryaustin
07/26/2022, 3:13 PMlooni
07/26/2022, 3:45 PMconst { data, error } = await locals.supabase.from('goals').select(`
id,
time,
player:playerId (
id,
name
),
team:teamId (
id,
name
),
opponent:opponentId (
id,
name
)
`)
How can I filter the query results by player name for example?garyaustin
07/26/2022, 3:50 PMlooni
07/26/2022, 3:52 PMgaryaustin
07/26/2022, 3:58 PMbattlesheep123
07/27/2022, 7:03 AMsupabase-js
client to read data from supabase. Queries such as the following return simple json objects.
let { data: projects, error } = await supabase.from('projects')
From other oop languages, I'm used to that every object is derived from a class. The great advantage is that this gives you auto completion for the attributes of your object.
This is something I'm missing in javascript. Is there a way to pass the result of the supabase query to e.g. a javascript class?Jaeden
07/27/2022, 7:39 AMrobertdenirosbiro
07/27/2022, 10:09 AManderjaska
07/27/2022, 3:51 PManderjaska
07/27/2022, 3:52 PMsupabase.auth.signUp
makes two separate requests, which results in a duplicate user error on the second call. I cant figure out why it would be doing that as I'm calling signup just once per signup.anderjaska
07/27/2022, 3:52 PMgaryaustin
07/27/2022, 3:54 PManderjaska
07/27/2022, 4:04 PMsignUp
is called in handleSubmit
of react-hook-forms
. I already console logged right before signUp and I only get one.Blade
07/27/2022, 4:45 PM@supabase/auth-helpers-sveltekit
which always throws the Error: Not found: /api/auth/user
error. That route is a auth-helper specific endpoint, so I'm unsure how to fix this. Auth still works, it just keeps throwing errors on every page load & visibility changesilentworks
07/27/2022, 5:01 PManderjaska
07/27/2022, 5:34 PMsignUp
not resolve until the trigger runs? Or is the trigger completely asynchronous?anderjaska
07/27/2022, 5:48 PMcreate table Profile (
id uuid unique not null,
updated_at timestamp with time zone,
email text,
primary key (id)
);
jvocodes
07/27/2022, 7:01 PMapp.get("/api/v1/upvotes/:id", async (req, res) => {
let { data: upvotes, error } = await supabase
.from("votes")
.select("upvote")
.eq("album_id", req.params.id)
.eq("upvote", true);
if (upvotes) console.log("worked", upvotes);
if (error) console.log(error);
res.status(200).json({
status: "success",
results: upvotes?.length,
data: { upvotes },
});
});