mongodb – find if value matches second element in array
Trying to return this document from a collection by checking if a variable (userId) matches the second element in users array. I created a playground. Expected result is the user document xyz as thats the only user who liked rrr…