我想檢查一下,如果一個Collection已經存在與ArangoDB-PHP。ArangoDB-PHP Collection exists check
$collectionHandler = new CollectionHandler($arango);
$userCollection = new Collection();
$userCollection->setName('_profiles');
因爲我得到以下錯誤:
Server error: 1207:cannot create collection: duplicate name cannot create collection: duplicate name
我如何檢查是否收集已經與ArangoDB-PHP存在?