Where-function, Service Request to Local Storage Comparison Value
Hello!
I am attempting to decrement the value of all in a column (“songseq”) on the database where the number is greater than the value of a local storage item (also “songseq”). The following hardcode with a fixed value (ex: 1) works:
return "{'songseq':{'$gte':1}}";
Thus far, I’ve failed to replace the fixed value with that of the local storage item. Example:
return "{'songseq':{'$gt':"' +localStorage.getItem("songseq")+ '"}}";