Para agentes de IA: um índice de documentação está disponível em https://www.mongodb.com/pt-br/docs/llms.txt — as versões de markdown de todas as páginas estão disponíveis anexando .md a qualquer caminho de URL.
Menu Docs

MongoDB\Collection Class

MongoDB\Collection

Fornece métodos para operações comuns em collection e documento, incluindo operações CRUD e gerenciamento de índices.

You can construct collections directly using the extension's MongoDB\Driver\Manager class or select a collection from the library's MongoDB\Client or MongoDB\Database classes. A collection may also be cloned from an existing MongoDB\Collection object by using the withOptions() method.

MongoDB\Collection supports the readConcern, readPreference, typeMap, and writeConcern options. If you omit an option, the collection inherits the value from the Manager constructor argument or the Client or Database object used to select the collection.

Operations within the MongoDB\Collection class inherit the collection's options.

Avalie esta página

Nesta página