Querying on IDs passed as Strings instead of BSON::ObjectId instances returns 0 results

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 5.1.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently in the process of upgrading from 4.x to 5.x and it seems that either in the driver or the new mongo code (2.6 -> 3.0), if IDs passed to a query are passed using a `String`, no results will be found, but if I pass a `BSON::ObjectId(String)`, it suddenly works.

      Any ideas?

      Thanks!

            Assignee:
            Emily Stolfo (Inactive)
            Reporter:
            Carlos Brito Lage
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: