最佳答案
在 MongoDB 中,如果我要在字段 "color"中存储一个数组(比如 ["red", "blue"]) ,它是索引 "red"和 "blue"以便我可以查询 "red",还是使 {"red", "blue"}成为一个复合索引?