How can i give id as input and show the name as output

{
“query”: “db.Sites.aggregate([ { "$match": { "cudFoil.deleted": false } }, { "$sort": { "cudFoil.createdAt": -1 } }, { "$project": { "_id": 0, "siteName": "$name", "siteId": "$_id" } } ])”
} this is my code to fetch the details of name and id , i need to know how to get the dashboard data of name, if i give id