How do i go about flattening this request so it co...
# help
d
How do i go about flattening this request so it comes back as
Copy code
const {data: initialPlayers} = await client.from('players')
  .select(`
    id: player,
    users (name)
  `)
Copy code
{ id, name }
Right now it's coming back as
Copy code
{id, users: {name } }
n
Hello @drilkmops! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! 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.
g
A quick thought would be try name:users(name). But I'm not sure without looking more.
n
Blaynem (2022-03-30)