You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Queries have historically been sent as OP_QUERY wire protocol messages, but beginning in MongoDB 3.2 queries use the "find" command instead.</p>
97
+
<p>Queries have historically been sent as OP_QUERY wire protocol messages, but beginning in MongoDB 3.2 queries use <linkhref="https://docs.mongodb.org/master/reference/command/find/">the "find" command</link> instead.</p>
98
98
<p>The driver automatically converts queries to the new "find" command syntax if needed, so this change is typically invisible to C Driver users. However, an application written exclusively for MongoDB 3.2 and later can choose to use the new syntax directly instead of relying on the driver to convert from the old syntax:</p>
<p>See the MongoDB Manual for a list of all "find" command options.</p>
125
124
<p>Most applications should use the OP_QUERY syntax, with "$query", "$orderby", and so on, and rely on the driver to convert to the new syntax if needed. There are two caveats: querying documents by a key named "filter", and using new "find" command options that OP_QUERY does not support.</p>
125
+
126
+
<sectionid="seealso">
127
+
<title>See Also</title>
128
+
<p><linkhref="https://docs.mongodb.org/master/reference/command/find/">The "find" command</link> in the MongoDB Manual.</p>
129
+
</section>
130
+
131
+
126
132
<sectionid="key-named-filter">
127
133
<title>Finding a document by a key named "filter"</title>
128
134
<p>To find a document like <codemime="x-json">{ "_id": 1, "filter": "value" }</code>, this query works in MongoDB before 3.2:</p>
0 commit comments