I want to check if a document with a specific email exists.
How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create a view that has email as a key and query that view for the specific email address. Which values are appropriate for the view depends on what you’re going to do with the results. You may, for example, choose the number of documents containing an email address as the values of the view.
This is a short introduction to views:
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views