delIgnoreNotFound method

Future<void> delIgnoreNotFound(
  1. String collection,
  2. int id
)

Remove document identified by id from specified collection. Doesn't raise error if document is not found.

Implementation

Future<void> delIgnoreNotFound(String collection, int id) =>
    del(collection, id).catchError((err) {
      if (err is EJDB2Error && err.isNotFound()) {
        return Future.value();
      } else {
        return Future.error(err);
      }
    });