When working with a client side database, I am trying to filter the results which works when passing a string such as;
{id:1}
Searching for id = 1, but when I am passing a variable through the function it becomes;
{id:'1'} which is not working with the database.
Is there a way to remove the '' being added?
fieldName = "category_id";
var field = {};
field[fieldName] = sort;