mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Explain fields for querying and return a bit better. Also add a warning for the
"$" issue. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321514 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
61bc4ac8fe
commit
dec523a7db
1 changed files with 15 additions and 2 deletions
|
@ -26,8 +26,19 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
The fields for which to search.
|
||||
The fields for which to search. MongoDB's query language is quite
|
||||
extensive. The PHP driver will in almost all cases pass the query
|
||||
straight through to the server, so reading the MongoDB core docs on
|
||||
<link xlink:href="&url.mongodb.dochub.find;">find</link> is a good idea.
|
||||
</para>
|
||||
<warning>
|
||||
<para>
|
||||
Please make sure that for all special query operaters (starting with
|
||||
<literal>$</literal>) you use single quotes so that PHP doesn't try to
|
||||
replace <literal>"$exists"</literal> with the value of the variable
|
||||
<literal>$exists</literal>.
|
||||
</para>
|
||||
</warning>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
|
@ -36,7 +47,9 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Fields of the results to return.
|
||||
Fields of the results to return. The array is in the format
|
||||
<literal>array('fieldname' => true, 'fieldname2' => true)</literal>.
|
||||
The <literal>_id</literal> field is always returned.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue