On this page本页内容
$eq
¶Compares two values and returns:比较两个值并返回:
true
when the values are equivalent.true
。false
when the values are not equivalent.false
。The $eq
compares both value and type, using the specified BSON comparison order for values of different types.$eq
使用不同类型的值的指定BSON比较顺序来比较值和类型。
$eq
has the following syntax:语法如下所示:
The arguments can be any valid expression. 参数可以是任何有效的表达式。For more information on expressions, see Expressions.有关表达式的详细信息,请参阅表达式。