But when using the returned count value there's a type error:
data.forEach(item => {
const count = item.bands_count[0].count
// Property 'count' does not exist on type 'SelectQueryError<"Referencing missing column `count`">'.
}
Expected behavior
No error message because count does in fact exist.
Bug report
Describe the bug
When querying a referenced table with
count
option like this:count
is returned correctly:But when using the returned
count
value there's a type error:Expected behavior
No error message because
count
does in fact exist.System information