Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Command::__constructMongoDB\Driver\Query::__construct>
^MongoDB\DriverLast updated: Mon, 26 Oct 2026

The MongoDB\Driver\Query class

(mongodb >=1.0.0)

Introduction

The MongoDB\Driver\Query class is a value object that represents a database query.

Class synopsis

final class MongoDB\Driver\Query {
/* Methods */
final public function __construct(array|object $filter, ?array $queryOptions = null)
}

Table of Contents


<MongoDB\Driver\Command::__constructMongoDB\Driver\Query::__construct>
^MongoDB\DriverLast updated: Mon, 26 Oct 2026