How can I check the total number of collections in arangodb in PHP?
This is what I tried:
$documents = $collectionHandler->all($collectionId);
var_dump($documents);
How can I check the total number of collections in arangodb in PHP?
This is what I tried:
$documents = $collectionHandler->all($collectionId);
var_dump($documents);
Copyright © 2021 Jogjafile Inc.
To get the number of collections present, you can use
CollectionHandler::getAllCollections()
for this purpose:To get the number of documents in a collection, as your code example suggests, use
CollectionHandler::count($collection)