protected function FindCommand::execute in MongoDB 8.2
File
- modules/mongodb/src/Command/FindCommand.php, line 100
Class
- FindCommand
- Class FindCommand provides the 'commands.mongodb.find' command.
Namespace
Drupal\mongodb\Command
Code
protected function execute(InputInterface $input, OutputInterface $output) {
$arguments = $input
->getArguments();
$alias = $arguments['alias'];
$collection = $arguments['collection'];
$selector = $arguments['selector'];
$this
->getIo()
->write($this->serialization
->encode($this->tools
->find($alias, $collection, $selector)));
}