i try to
dataSource.getRepository(CollectionEntity).find({
relations: {
workspaces: true
},
select: {
id: true,
name: true,
workspaces: {
id: true,
name: true
}
}
})
but the response contains always the whole workspace relation with all fields and not only id, name
i would expect
[
{
id: 1,
name: "col1",
workspaces: [
{
id: 1,
name: "ws1"
}
]
}
]