public FluentFuture<Integer> updateAll() {
      return repository.doUpdate(criteria, collectRequiredUpdate(), new UpdateOptions());
    }
Updates all matching document.
@return future of number of updated document
mongo/src/org/immutables/mongo/repository/Repositories.java