I m using NodeJs and MongoDB as a backend service for my app.I want to check if field exist in database for a specified id.I have database structure like below:
{
{
_id:"1"
Name:"Digi"
},
{
_id:"2"
Name:"Digi"
Place:"London"
}
}
I am using MongoDB driver for NodeJS.
Someone please let me know how to achieve this.
THANKS