{"id":27579,"date":"2024-11-24T19:40:38","date_gmt":"2024-11-24T11:40:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/?p=27579"},"modified":"2024-11-24T19:40:38","modified_gmt":"2024-11-24T11:40:38","slug":"php7%e4%b8%ad%e7%9a%84mongodbdriverquery","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/27579\/","title":{"rendered":"PHP7\u4e2d\u7684MongoDB\\Driver\\Query"},"content":{"rendered":"<p>\u8fd9\u4e2a\u7c7b\u53ef\u4ee5\u7406\u89e3\u4e3a\u662f\u5bf9query\u64cd\u4f5c\u7684\u63cf\u8ff0.<\/p>\n<p><strong>final public MongoDB\\Driver\\Query::__construct ( array|object $filter [, array $queryOptions ] )<\/strong><\/p>\n<p>$filter\uff1a\u652f\u6301mongodb\u5b98\u65b9\u7684\u6240\u6709\u67e5\u8be2\u64cd\u4f5c\uff0c<br \/>\n\u8be6\u89c1\uff1ahttps:\/\/docs.mongodb.com\/manual\/tutorial\/query-documents\/<\/p>\n<p>&nbsp;<\/p>\n<p>$queryOptions\u7684\u8be6\u89e3<br \/>\nallowPartialResults\uff1a\u662f\u5426\u8fd4\u56de\u90e8\u5206\u7ed3\u679c\uff0c\u4f8b\u5982\u96c6\u7fa4\u4e2d\u65b9\u67d0\u4e2a shards\u5b95\u673a\u540e\uff0c\u8fd4\u56de\u90e8\u5206\u7ed3\u679c\u3002\u5982\u679c\u672a\u6307\u5b9a\u5c06\u8fd4\u56de\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u7c7b\u53ef\u4ee5\u7406\u89e3\u4e3a\u662f\u5bf9query\u64cd\u4f5c\u7684\u63cf\u8ff0. final public MongoDB\\Driver\\Query::__construct ( array|object $filter [, array $queryOptions ] ) $filter\uff1a\u652f\u6301mongodb\u5b98\u65b9\u7684\u6240\u6709\u67e5\u8be2\u64cd\u4f5c\uff0c \u8be6\u89c1\uff1ahttps:\/\/docs.mongodb.com\/manual\/tutorial\/query-documents\/ &nbsp; $queryOptions\u7684\u8be6\u89e3 allowPartialResults\uff1a\u662f\u5426\u8fd4\u56de\u90e8\u5206\u7ed3\u679c\uff0c\u4f8b\u5982\u96c6\u7fa4\u4e2d\u65b9\u67d0\u4e2a shards\u5b95\u673a\u540e\uff0c\u8fd4\u56de\u90e8\u5206\u7ed3\u679c\u3002\u5982\u679c\u672a\u6307\u5b9a\u5c06\u8fd4\u56de\u9519\u8bef\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-27579","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=27579"}],"version-history":[{"count":1,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27579\/revisions"}],"predecessor-version":[{"id":27585,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/27579\/revisions\/27585"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=27579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=27579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=27579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}