I'm starting to learn MongoDB, currently, I'm on the Projection Operator lesson. I want to ask about $ (projection). According to MongoDB document, the syntax is like
db.collection.find( { <array>: <condition> ... },
{ "<array>.$": 1 } )
I want to ask about the parameter "1" in { "<array>.$": 1 }. What is the meaning of that? At first, I think it means "first element" but when I change it to "2" it doesn't show the second element, it was still the same. I can't find any information about this parameter on the internet