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'
    }
  }
]
Was this page helpful?