This is the query I’m using:
const [records] = await connection.execute({
sql: `
SELECT
c.user_id AS id,
JSON_UNQUOTE(c.data) AS data
FROM
credentials c
JOIN
merchants m ON m.id = c.merchant_id
WHERE c.user_id IN (${idsToken})`
});
For some reason the data is nevertheless returned as a string…Am I doing something wrong?