BSON can't serialize instances of Set

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 12_01_17
    • Affects Version/s: 1.3.1
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Just tried to make a query such as:

      { '_id' =>

      {'$in' => my_set }

      where `my_set` is an instance of ruby's Set class, part of stdlib. BSON complained that it can't serialize it.

      Since a set behaves as an array as far as we're concerned here, I recommend improving BSON serialization to treat Sets as arrays.

            Assignee:
            Kyle Banker (Inactive)
            Reporter:
            Mislav Marohni?
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: