Hướng dẫn or mongodb
Docs Home → MongoDB Manual $or The
Consider the following example:
This query will select all documents in the When evaluating the clauses in the When using indexes with
To support this query, rather than a compound index, you would
create one index on
MongoDB can use all but the geoHaystack index to support If
When executing You can create partial indexes with
When using
For example, to select all documents in the
You may nest
TipTo allow the query engine to optimize queries,
For example, the following query always produces an error if
The following query, which contains multiple expressions supplied to
|