I have to make a key unique in dynamo db. i want to make my email unique, if the email is already existed in database then when i enter next time the same email id then it should not enter to database. it should give a response "email already exists". How can i get that?
This is the response which i am getting an employee..in this example i dont need to insert another email value like [email protected]
{
"defaultEmp": 0,
"empName": "Hari",
"statuses": 1,
"designation": "store keeper",
"id": 1,
"storeId": 1,
"email": "[email protected]"
}