Getting Single document by Unique value


#1

Hi

Whats the best approach for querying a single entity by a unique value which is not the Key?

var view = client.GetView("useraccount", "by_email").StartKey(theEmail).EndKey(theEmail).Limit(1); if(view.Any()) { var doc = client.Get(view.First().ItemId); //Do deserialization }