要查询特定字段为多个值之一的文档,可使用运算符$in。对于数据库words,一个这样的典型示例是,根据字段first查找以a、b或c打头的单词,如下所示:
find({first:{$in: ['a', 'b', 'c'] } });