exists method

Future<bool> exists()

Implementation

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