delete method
Deletes documents from the collection matching the query.
When optimistic is true, the local cache removes the documents
immediately while awaiting server confirmation.
Implementation
Future<void> delete({bool optimistic = false}) {
return _client.delete(
_collection,
filter: definition.filter,
optimistic: optimistic,
);
}