exists method

Future<bool> exists()

Implementation

Future<bool> exists() async {
  try {
    await get();
    return true;
  } on ArangoError catch (e) {
    const TRANSACTION_NOT_FOUND = 10;
    if (e.errorNum == TRANSACTION_NOT_FOUND) {
      return false;
    } else {
      rethrow;
    }
  }
}