public static function listUserDatabases(Connection $connection)
    {

        $url = UrlHelper::buildUrl(Urls::URL_DATABASE, ['user']);

        $response = $connection->get($url);

        return $response->getJson();
    }
public static function listUserDatabases(Connection $connection)
    {

        $url = UrlHelper::buildUrl(Urls::URL_DATABASE, ['user']);

        $response = $connection->get($url);

        return $response->getJson();
    }
public static function listUserDatabases ( Connection $ connection ) { $ url = UrlHelper :: buildUrl ( Urls :: URL_DATABASE , [ 'user' ] ) ; $ response = $ connection -> get ( $ url ) ; return $ response -> getJson ( ) ; }
List user databases

Retrieves the list of all databases the current user can access without
specifying a different username or password.

@param Connection $connection - the connection to be used

@link https://docs.arangodb.com/HTTP/Database/index.html

@return array $responseArray - The response array.
@throws \ArangoDBClient\Exception
@throws \ArangoDBClient\ClientException
List user databases