Hello! Newbiequestion here. Is it possible to rena...
# help
m
Hello! Newbiequestion here. Is it possible to rename properties when doing a select request?
Copy code
const { data, error } = await supabase.from('bets').select(`
    stake,
    profiles ( username ),
    events ( fixture )
  `);
for example rename profiles to profileInfo or something like that 🙂
s
Yes, try:
Copy code
const { data, error } = await supabase.from('bets').select(`
    stake,
    profileInfo:profiles ( username ),
    events ( fixture )
  `);
Note that it's backwards to the other answer, the correct way is
alias:table
.
m
Ahaa! I see, Will try this 🙂