I am using Typeorm v0.3.20 and trying to run a raw query with the prepared statement but I cannot get it to work. This is the error I am getting:
Must declare the table variable “tableName”.
See below the failing code:
await dataSource.query('SELECT seed FROM @tableName WHERE seed = @sedName');
Thank you in advance
1