I can fetch first row of the table like this;
await Database .table('users') .first()
But I want to get all records from the table. But I can’t use methods such as
fetch. If I don’t use anything,
table method returns
RowDataPacket. But I need to have all data as json.
I couldn’t find anything on documentation. What am I missing?