https://supabase.com/ logo
Is it possible to remove the extra level of depth ...
# help
j
Is it possible to remove the extra level of depth on select request? For instance, I have this select request:
Copy code
js
            .select(`
                organization(id, name)
            `)
Which gives me the following result: [   { organization: { id: dqzdqz, name: "dqdqdq" } }, { organization: { id: dqdqdqdqzd, name: "dqdqdq" } } ] And I would like to have: [ { id: dqdqdq, name: "dqdqd" }, ... ]
n
Hello @Julien! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
j
We can do it manually with for loop directly when we receive the response, but I would like this to be done automatically before I receive the response