MongoDB.Driver.Builders.QueryConditionList.Exists C# (CSharp) Method

Exists() public method

Adds a $exist test to the query.
public Exists ( bool exists ) : QueryConditionList
exists bool Whether to test for the existence or absence of an element.
return QueryConditionList
        public QueryConditionList Exists(
            bool exists
        ) {
            conditions.Add("$exists", BsonBoolean.Create(exists));
            return this;
        }