ActiveRecord parity: allow selector arguments for .exists?

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 8.1.0
    • Affects Version/s: None
    • Component/s: Query
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      In ActiveRecord, you can do the following:

      Customers.exists?(name: "Bob")

      This is equivalent to:

      Customers.where(name: "Bob").exists?

      Currently, Mongoid does not accept arguments for the .exists? method. It would be nice if this could be supported.

              Assignee:
              Neil Shweky (Inactive)
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: