I am new at this so what I am asking may seem trivial to most. I am trying to retrieve a database record using the value of the record "_id" stored in a localstorage variable called "CurrentItemCommentID". I have verified the proper _id number is being stored and I can enter it in the where clause manually using:
return '{"_id": {"$regex":"51d857c0e4b0b7b459fc4d3f" }}';
I want to do the same thing using the localstorage variable called "CurrentItemCommentID" which has that exact same hex decimal string stored in it.