Adds an and condition to the query.
The and() function adds an and condition to a ContactsQueryBuilder.
A query with an and returns all the items that match the query
as defined up to the and function and also match the query or
filter passed to the and function.
Note that when chaining multiple ContactsQueryBuilder functions to a query an and condition is assumed.
In such cases, you do not need to add a call to the and() function.
For example, this query returns results where subscription status is not set and
the contact was created after March 1, 2021.
The and() function is needed when performing compound queries. For
example, the final query in this set of queries returns results where subscription status
is either not set or pending and creation date is earlier than than March 1, 2021 or
the contact is labeled as a stale lead.
The and() function is designed to work with 2 or more queries or filters.
If you use it on its own, it will return all the items that meet the query criteria.
A query to add to the initial query as an and condition.