public FluentFuture<Integer> updateFirst() {
      return repository.doUpdateFirst(criteria, collectRequiredUpdate(), new FindOneAndUpdateOptions());
    }
Updates a single document that matches.
@return number of updated documents. 0 or 1
mongo/src/org/immutables/mongo/repository/Repositories.java