I am using react-querybuilder in my project and recently using valueProcessor to change the value of field. The generated query result for SQL is OK but for MongoDb is not correct.
To simulate please visit this. I expect the following result :
{"$and":[{"firstName":{"$regex":"^jon"}},{"lastName":{"$in":["Vai","Vaughan"]}}]}
but this is the generated result:
{"$and":[jon,('Vai', 'Vaughan')]}
I wonder if I made a mistake or a bug.
Update : the link for simulation was broken now I fixed it.