Filter the query to only include documents matching the provided
predicate function.
Call the provided action function for each document matched by the
query in turn.
Modify this query to include the closing bound, if it exists in the table.
Limit the query to include at most count documents.
Delete all documents from the table matching this query.