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

Remove #one method from has_many associations

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0
    • Affects Version/s: None
    • Component/s: Query
    • Labels:
      None

      Investigate whether has_many associations have #exists? method that returns whether any child documents exist and queries the database efficiently (i.e. does not retrieve the entire set of child documents)
      Document the #exists? method on associations
      Remove the #one method added in 4547

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: