Getting the length of MySQL2 array in TS
I have a query that gets executed. It grabs the records that are currently being logged in. Depending on how many devices, i’d like it to do certain things. However when I try to use
.length
it throws this Property 'length' does not exist on type 'QueryResult'. Property 'length' does not exist on type 'OkPacket'.ts(2339)
While it does still give me the length, I want to know if there are other ways to do it.