I have a user document like this
{
    "_id": "userid",
    "posts": [
        {
            "_id": {
                "$oid": "5ad68c4febe84802fcd9feb0"
            },
            "likes": [
                {
                    "_id": {
                        "$oid": "5ad626d578c7b21c0806042e"
                    }
                }
            ]
        }
    ]
}
I want to get the document by post id and find out if a user id is already inside the likes array of the same post
How can i do this in mongoose ?
Thanks in advance.
