Is there a way to do a less than or equal to query on a string field of a number?
Example Data
| Id | Price |
| 1 | "1000.00" |
| 2 | "5400.00" |
| 3 | "750.00" |
When I execute this query it returns all of the records:
db.MyCollection.find({ Price: {$lte: "1000.0"} })
When I execute this query it returns nothing:
db.MyCollection.find({ Price: {$lte: 1000.0} })