title: How does MongoDB index arrays?
body: <p>In MongoDB, if I were to store an array (say <code>["red", "blue"]</code>) in a field <code>"color"</code>, does it index <code>"red"</code> and <code>"blue"</code> so I could query for <code>"red"</code>, for example, or does in make <code>{"red", "blue"}</code> a composite index?</p>