SupabaseS
Supabase4y ago
YANN

Is it possible to set the desired return type for a select ?

Hello, let's say I want to query 2 fields like

supabase.from("table").select("id, color");


Ideally I would like to receive the color field in a nested record, as such:

{
    id: 0,
    appearance: {
        color: 5
    }
}


I know this is possible via graphql, but I would like to avoid using it, thanks in advance!
Was this page helpful?