public class ExistsOperation extends QueryOperationWithField
Represent $exists operation. When boolean is true, $exists matches the documents that contain the field. When boolean is false, the query returns only the documents that do not contain the field.
  • Constructor Details

    • ExistsOperation

      public ExistsOperation(String fieldName, Boolean bool)
  • Method Details

    • getBoolean

      public Boolean getBoolean()