AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.

MongoDB\Model\CollectionInfo::getInfo()

버전 1.9에 추가 되었습니다.

MongoDB\Model\CollectionInfo::getInfo()

collection에 대한 추가 정보를 반환합니다.

function getInfo(): array

collection에 대한 추가 정보가 포함된 배열입니다. 이는 listCollections 명령 회신에서 반환된 info 필드에 해당합니다.

<?php $db = (new MongoDB\Client)->test; // Creates a view with the readOnly option set to "true"$db->createCollection( 'myView', ['viewOn' => 'myCollection'], ['readOnly' => true]); // Retrieves information about the collection viewforeach ($db->listCollections(['filter' => ['name' => 'myView']]) as $info) { var_dump($info->getInfo());}

이 경우 출력은 다음과 유사합니다:

array(1) { ["readOnly"]=> bool(true)}
이 페이지 평가하기