Javascript not compiling inside of MYSQL Resource Query

I'm trying to use JS in a Where clause and I'm not getting any data returned, but no error.

From my SQL prepared statement, it looks like the final query is using '?' where the JS should be, rather than the desired value. I can hover there and it shows the correct value.

Am I doing something wrong here or is this a bug?

Original working query without any JS

Using JS to at the end of the statement, hover reveals it has the same value as previous example

SQL Prepared Statement shows a question mark for the JS which reveals the value upon hover

Nevermind, just had to use the toString() method.

{{select_patient.selectedItem.id.toString()}}
1 Like