Hello im a very new to MongoDB and want some help

i want to use $match aggregation.

I want to give 1 Input say a Name,
And should get 2 Attributes say Gendar and DOB


  { "$match" : { "Name" : Name } } ,
  { "$project" : { "Gendar" : true , "DOB" : true , "_id" : false } }

I strongly recommend that you take courses from MongoDB University. Start with M001 and then M121.

@Yash_Srivastava, has the aggregation I posted help you accomplish what you wanted? If it is, please mark my post as the solution so that others know that it works. This will help keep this post useful and efficient. It is simply courtesy.