public function getCollectionInfo($collection)
    {
        try {
            $collection = $this->_toolbox->getCollectionHandler()->getProperties($collection);

            $result = $collection->getAll();

            switch ($result['type']) {
                case 2:
                    $result['type'] = "documents";
                    break;

                case 3:
                    $result['type'] = "edges";
                    break;
            }

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }