-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
If you want to store float values in JSON, you must store them as string. Therefore, to make my life easier, I simply store all numbers as strings in my JSON.
I have not had any issues with this until now. I cannot seem to use the numerical comparisons in the jsql.
Data:
[{"popularity":"100"}, {"popularity":"50"}, {"popularity":"75"}]
[{"price":"5.95"}, {"price":"99.95"}, {"price":"49.95"}]
JSQL:
{popularity: {gt: 50}}
{price: {gt: 50}}
Please let me know if I am missing something, I would not doubt that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels