title: MongoDB - Query on the last element of an array?
body: <p>I know that MongoDB supports the syntax <code>find{array.0.field:"value"}</code>, but I specifically want to do this for the last element in the array, which means I don't know the index.  Is there some kind of operator for this, or am I out of luck?</p>
  
  <p>EDIT:  To clarify, I want find() to only return documents where a field in the last element of an array matches a specific value.</p>