collection::count() serializes options::count::hint incorrectly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.3
    • Affects Version/s: None
    • Component/s: Implementation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      collection::count() incorrectly serializes the hint object in the count request with a field name of "$hint" instead of "hint". When the server receives the incorrect count option "$hint", it is ignored.

      As a result, passing an options::count object to collection::count which has a hint set will have no effect.

              Assignee:
              J Rassi (Inactive)
              Reporter:
              J Rassi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: