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

Intersection on embedded criteria

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.7
    • Affects Version/s: None
    • Component/s: None
    • None

      Hi Durran,

      I posted a question on SO but after thinking about it some more I believe this was a change between mongoid 3 and mongoid 2: http://stackoverflow.com/questions/12540287/mongoid-intersect-criteria-on-embedded-document So not sure if it was intentional.

      It seems like a tough problem, because it usually makes sense to have criteria with the same key get overwritten later in the chain. But for embedded documents I guess it makes sense to keep multiple with the same key.

      Any ideas? Thanks for the help!

            Assignee:
            durran Durran Jordan
            Reporter:
            barmstrong Brian Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: