incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <jch...@gmail.com>
Subject Re: Validate uniqueness field
Date Sun, 28 Mar 2010 00:02:39 GMT

On Mar 27, 2010, at 4:56 PM, faust 1111 wrote:

> Hi
> 
> In what way i cat implement validation of uniqueness?
> User
>  email: unique
>  login:  unique
> 

You can only have 1 unique field per database. you implement it by using it as a docid, like

{
"_id" : "user:unique",
   ...
}

Chris
Mime
View raw message