I want to check if a document with a specific email exists.
How can I do that?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With