On this page本页内容
The <expression>
can be any valid expression. <expression>
可以是任何有效的表达式。For more information on expressions, see Expressions.有关表达式的详细信息,请参阅表达式。
{ $isArray: [ "hello" ] } |
false |
{ $isArray: [ [ "hello", "world" ] ] } |
true |
A collection named 名为warehouses
contains the following documents:warehouses
的集合包含以下文档:
The following example checks if the 以下示例在连接instock
and the ordered
fields are arrays before concatenating the two:instock
和ordered
字段之前检查它们是否是数组:
See also参阅