I have version string field/property in collection which stores semantic version values like ‘12.0.0’, ‘9.0.0’, ‘9.3.0’ etc.
When I execute following syntax { version: { $in: “9.0.0” } } i get about 54 records but when execute { version: { $gte: “9.0.0”, $lte: “10.0.0” } } I get none, why?
I thought MongoDB does Lexicographic Comparison.
Thanks,
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Feedback on CV database schema: embedded data versus references | 2 | 674 | May 2024 |
Merge into - Halloween problem | 1 | 460 | Jun 2024 |
Working with data | 3 | 388 | Jul 2024 |
Why is the bulk write size limit in MongoDB set to 16MB, while the chunk size is 64MB? Would setting both to the same size improve data transfer efficiency? | 0 | 256 | Jul 2024 |
Change Stream generated for UpdateOne Query On List Using Array Filters Is Not Consistent For Single and Multiple matches | 0 | 176 | Aug 2024 |