uncertain-scarletU
Refine11mo ago
14 replies
uncertain-scarlet

Supabase how to rename column

I am trying something like
 const { data, isLoading, error } = useMany<OrganisationMemberWithOrganisation>({
      resource: 'organisation_member',
      ids: userId ? [userId] : [],
      meta: {
        idColumnName: 'user_id',
        select: '*, organisation_id(*) as "organisation"'
    },
    });


Where I'm trying to rename organisation_id to organisation but it's not working
Was this page helpful?