Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1696

Provide ability to query for the existence of a Document without needing to return anything about the object.

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.6.1
    • None
    • None

    Description

      In order to test for the existence of an object, a find(template).count() > 0 can be used to determine if a Document matching the template currently exists. However, this is work that doesn't need to be done. Instead, it would be nice if a call like: find(template).exists() or exists(template) could be used. In this case a simple boolean true/false return value would be sufficient.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ahazelwood@ciradar.com Andre' Hazelwood
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: