Getting duplicate returns

when i query my server with a leftJoin for referenced channels get this back instead of just one server with channels: [], is there a way to do that? or do i just have to format it afterwards?
[
{
server: {
id: 'qDRStUN0MoCcUH2b',
},
channel: {
id: '2N5hUHNCqdhd6WQp',
name: 'test'
}
},
{
server: {
id: 'qDRStUN0MoCcUH2b',
},
channel: {
id: 'cl5zV2pemDJntTOs',
name: 'general'
}
}
]
[
{
server: {
id: 'qDRStUN0MoCcUH2b',
},
channel: {
id: '2N5hUHNCqdhd6WQp',
name: 'test'
}
},
{
server: {
id: 'qDRStUN0MoCcUH2b',
},
channel: {
id: 'cl5zV2pemDJntTOs',
name: 'general'
}
}
]
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?