Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4461

`out(inline: true)` does not work in Mongoid 5.2

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 7.0.0
    • Affects Version/s: 5.2.0, 5.2.1
    • Component/s: None

      In Mongoid 5.0 (and earlier) it was possible to make an aggregate query with `out(inline: true)`. After upgrading to 5.2 (tested in 5.2.0 and 5.2.1) a query with such output option will fail:

      ....map_reduce(map, reduce).finalize(finalize).out(inline: true)
      # Mongo::Error::OperationFailure: Invalid collection name: [.....] (73)
      

      Changing to `out(inline: 1)` solves the problem.

      I guess this is a non desired behavior and should be changed?

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            ilya_konanykhin Ilya Konanykhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: