PHP7中的MongoDB\Driver\Query

这个类可以理解为是对query操作的描述.

final public MongoDB\Driver\Query::__construct ( array|object $filter [, array $queryOptions ] )

$filter:支持mongodb官方的所有查询操作,
详见:https://docs.mongodb.com/manual/tutorial/query-documents/

$queryOptions的详解
allowPartialResults:是否返回部分结果,例如集群中方某个 shards宕机后,返回部分结果。如果未指定将返回错误。
详见:http://php.net/manual/zh/mongodb-driver-query.construct.php

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>