Hey all, i have a select statement that looks like...
# help
p
Hey all, i have a select statement that looks like this:
Copy code
js
.select(
  `
  *,
  members:teams_members(*)
`
)
This will give something like this:
Copy code
json
[{
  ...
  members: {...} 
}]
My question is: Is there a way to just "spread" the
members
object inside its parent via the select statement?
n
Hello @Prodigy7kX! 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.
s
I'm not sure what you mean by spreading the
members
object?
n
Prodigy7kX (2022-05-01)
p
I wanna go from this:
Copy code
[{
  id,
  ...,
  members: {...} 
}]
to this:
Copy code
[{
  id,
  ...,
  ...members.
}]
I know i can do that on the client side, i just wanna know if theres a way to query it like that
s
There isn't a way to do a query like that