Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7716

Range query operators ($gt, $lt, etc) between BSON types unsupported

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The documentation for the $gt, $lt, $gte, and $lte operators suggests that range queries on fields will follow the MongoDB BSON comparison operator when attempting to run a range query.

      For comparison of different BSON type values, see the specified BSON comparison order.

      However, this is not supported, so the link to the BSON comparison order should be removed and this behavior should be clarified.

            Assignee:
            steve.renaker@mongodb.com Steve Renaker (Inactive)
            Reporter:
            rahul.dhodapkar Rahul Dhodapkar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 50 weeks, 1 day ago