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

Allow using exists? with args on relations

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 9.0.0, 8.1.4
    • Affects Version/s: None
    • Component/s: None

      The following should be supported:

      person.posts.exists?({ title: "50 Ways to Leave Your Lover" })

      Note that the following works today:

      Post.exists?({ title: "50 Ways to Leave Your Lover" })

      This was missed in the original implementation MONGOID-5100

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: