Thank you so much Xp,
I tried also:
function(doc) {
if(doc.type === "student")
emit([doc.name,doc.password], doc);
}
http://URL/DBname/_design/authentication/_view/name of
view?key=["username","password"]
and its worked.
But when i tried to do the following :
function(doc) {
if(doc.type === "student")
emit({password= doc.password, name = doc.name}, doc);
}
In this case i don't know , how can write a query with Url .
I tried the following b it its not worked:
http://URL/DBname/_design/authentication/_view/name of view?name =
key.name&password=key.password
How can i fix that ? please
Best regards
Ashraf