Supabase how to rename column
I am trying something like
Where I'm trying to rename organisation_id to organisation but it's not working
Where I'm trying to rename organisation_id to organisation but it's not working
const { data, isLoading, error } = useMany<OrganisationMemberWithOrganisation>({
resource: 'organisation_member',
ids: userId ? [userId] : [],
meta: {
idColumnName: 'user_id',
select: '*, organisation_id(*) as "organisation"'
},
});