for one of my project we are using react-querybuilder lib and the end result will be sent to server to filter data accordingly, my backend use Sequelize, Express with JavaScript.
My concern is how to make sql queries or Sequelize command from the output json of react querybuilder
The output json is something like below-
{
"combinator": "and",
"rules": [
{
"field": "first_name",
"operator": "beginsWith",
"value": "Stev",
},
{
"field": "last_name",
"operator": "in",
"value": "Vai, Vaughan",
},
],
}
I could use the formatQuery to make sql from it but will that raise any security concerns or is there nay other proper approach to implement this on backend?