I am going to execute such a long query on the NestJS framework using Typeform. Please let me know how to execute this query.
select user.id, user.fullName, (select count(*) sendCnt from chat where senderId = user.id), (select count(*) recvCnt from chat where receiverId = user.id) from users user where user.role = 'Admin'