Add a Filters.empty() method

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.0
    • Affects Version/s: None
    • Component/s: Builders
    • None
    • None
    • Needed
    • Hide

      Documentation changes have been made as part of the commit, but will need to be ported over to the new documentation site.

      Show
      Documentation changes have been made as part of the commit, but will need to be ported over to the new documentation site.
    • None
    • None
    • None
    • None
    • None
    • None

      At the moment I need to write the following:

       

      exampleCollection.updateMany(new Document(), set("status", status))
      

      It would be a lot more self-descriptive to use a method like Filters.empty() to achieve the same result:

       

       

      exampleCollection.updateMany(empty(), set("status", status))
      

       

       

              Assignee:
              Brian DeLeonardis (Inactive)
              Reporter:
              Gyula Lakatos
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: