exists method

Future<bool> exists()

Implementation

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